Allow both SUP_UPDATE and CVS_UPDATE to be used, similar to src/Makefile
PR: 17903 Submitted by: James Housley <jim@thehousleys.net> Reviewed by: billf
This commit is contained in:
parent
1205003628
commit
66067235bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34512
9
Makefile
9
Makefile
@ -88,11 +88,7 @@ CVS?= cvs
|
||||
SUPFLAGS+= -h ${SUPHOST}
|
||||
.endif
|
||||
update:
|
||||
.if defined(SUP_UPDATE)
|
||||
.if !defined(PORTSSUPFILE)
|
||||
@${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update."
|
||||
@exit 1
|
||||
.endif
|
||||
.if defined(SUP_UPDATE) && defined(PORTSSUPFILE)
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo ">>> Running ${SUP}"
|
||||
@echo "--------------------------------------------------------------"
|
||||
@ -102,6 +98,9 @@ update:
|
||||
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR}; ${CVS} -q update -P -d
|
||||
.elif defined(SUP_UPDATE) && !defined(PORTSSUPFILE)
|
||||
@${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update."
|
||||
@exit 1
|
||||
.else
|
||||
@${ECHO_MSG} "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user