1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Add Subversion capability to the update traget

This commit is contained in:
Beat Gaetzi 2012-07-15 18:23:24 +00:00
parent c8e601d4ed
commit a0e668c212
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300899

View File

@ -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}
@ -170,6 +171,12 @@ update:
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@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}"
@ -186,3 +193,4 @@ update:
.endif
.endif
.endif
.endif