svn commit: r357936 - head

Baptiste Daroussin bapt at FreeBSD.org
Sun Jun 15 22:47:11 UTC 2014


Author: bapt
Date: Sun Jun 15 22:47:10 2014
New Revision: 357936
URL: http://svnweb.freebsd.org/changeset/ports/357936
QAT: https://qat.redports.org/buildarchive/r357936/

Log:
  Add a mechanism to allow updating the ports tree with rsync
  
  PR:		171681
  Submitted by:	cyberleo at cyberleo.net

Modified:
  head/Makefile

Modified: head/Makefile
==============================================================================
--- head/Makefile	Sun Jun 15 22:40:31 2014	(r357935)
+++ head/Makefile	Sun Jun 15 22:47:10 2014	(r357936)
@@ -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}"


More information about the svn-ports-head mailing list