mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add a mechanism to allow updating the ports tree with rsync
PR: 171681 Submitted by: cyberleo@cyberleo.net
This commit is contained in:
parent
5d4d1b6604
commit
0b2a22b77c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357936
6
Makefile
6
Makefile
@ -162,6 +162,7 @@ print-index: ${INDEXDIR}/${INDEXFILE}
|
||||
|
||||
GIT?= git
|
||||
SVN?= svn
|
||||
RSYNC?= rsync
|
||||
PORTSNAP?= portsnap
|
||||
PORTSNAP_FLAGS?= -p ${.CURDIR}
|
||||
.if !target(update)
|
||||
@ -176,6 +177,11 @@ update:
|
||||
@echo ">>> Updating ${.CURDIR} from git+svn repository"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR}; ${GIT} svn rebase
|
||||
.elif defined(RSYNC_UPDATE) && defined(PORTS_RSYNC_SOURCE)
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo ">>> Updating with ${RSYNC} from ${PORTS_RSYNC_SOURCE}"
|
||||
@echo "--------------------------------------------------------------"
|
||||
@${RSYNC} ${RSYNC_FLAGS} ${PORTS_RSYNC_SOURCE}/ ${.CURDIR}/
|
||||
.else
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo ">>> Running ${PORTSNAP}"
|
||||
|
Loading…
Reference in New Issue
Block a user