Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2012 18:23:25 +0000 (UTC)
From:      Beat Gaetzi <beat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r300899 - head
Message-ID:  <201207151823.q6FINPFB063697@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beat
Date: Sun Jul 15 18:23:24 2012
New Revision: 300899
URL: http://svn.freebsd.org/changeset/ports/300899

Log:
  - Add Subversion capability to the update traget

Modified:
  head/Makefile

Modified: head/Makefile
==============================================================================
--- head/Makefile	Sun Jul 15 17:36:43 2012	(r300898)
+++ head/Makefile	Sun Jul 15 18:23:24 2012	(r300899)
@@ -152,6 +152,7 @@ print-index:	${INDEXDIR}/${INDEXFILE}
 	@awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < ${INDEXDIR}/${INDEXFILE}
 
 CVS?= cvs
+SVN?= svn
 SUP?= csup
 PORTSNAP?= portsnap
 PORTSNAP_FLAGS?= -p ${.CURDIR}
@@ -171,6 +172,12 @@ update:
 	@echo "--------------------------------------------------------------"
 	cd ${.CURDIR}; ${CVS} -R -q update -A -P -d -I!
 .else
+.if exists(${.CURDIR}/.svn)
+	@echo "--------------------------------------------------------------"
+	@echo ">>> Updating ${.CURDIR} from svn repository"
+	@echo "--------------------------------------------------------------"
+	cd ${.CURDIR}; ${SVN} -q update
+.else
 	@echo "--------------------------------------------------------------"
 	@echo ">>> Running ${PORTSNAP}"
 	@echo "--------------------------------------------------------------"
@@ -186,3 +193,4 @@ update:
 .endif
 .endif
 .endif
+.endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207151823.q6FINPFB063697>