diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2006-01-02 13:29:58 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2006-01-02 13:29:58 +0000 |
| commit | fcb9ab1e8e01632aea6337fe881fce97c4113ed5 (patch) | |
| tree | d8297de39d75944d186630a661755a631f95a4ea | |
| parent | 17ed18fef3ee30b72f8f88ef7b43d082ae8d8bf1 (diff) | |
Notes
| -rw-r--r-- | release/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile index a392695fb1c7..7c98351e7748 100644 --- a/release/Makefile +++ b/release/Makefile @@ -35,6 +35,10 @@ BUILDNAME?=${BASE}-${DATE}-SNAP # be copied; cvs update will be used instead. #EXTSRCDIR=/usr/src # +# To use a checked-out ports collection directory instead of +# checking out from a local CVS repository, set this option. +#EXTPORTSDIR=/usr/ports +# # To add other options to the CVS subcommands (co,up), set #CVSCMDARGS="-D '01/01/2002 00:00:00 UTC'" # @@ -384,9 +388,15 @@ release rerelease: .endif rm -rf ${CHROOTDIR}/usr/ports .if !defined(NOPORTSATALL) +.if defined(EXTPORTSDIR) + cd ${CHROOTDIR}/usr && cp -R -H ${EXTPORTSDIR} ports + # If there are distfiles downloaded removing them + rm -rf ports/distfiles/* +.else cd ${CHROOTDIR}/usr && ${CVSPREFIX} cvs -R ${CVSARGS} -d ${CVSROOT} \ co ${CVSCMDARGS} ${CVS_PORTSARGS} ${RELEASEPORTSMODULE} .endif +.endif .if !defined(NODOC) rm -rf ${CHROOTDIR}/usr/doc .if defined(EXTDOCDIR) @@ -415,7 +425,7 @@ release rerelease: update ${CVSCMDARGS} -P -d -r ${RELEASETAG} .endif rm -f ${CHROOTDIR}/tmp/.world_done -.if !defined(NOPORTS) +.if !defined(NOPORTS) && !defined(EXTPORTSDIR) cd ${CHROOTDIR}/usr/ports && ${CVSPREFIX} cvs -R ${CVSARGS} -q \ update ${CVSCMDARGS} -P -d rm -f ${CHROOTDIR}/tmp/.skip_ports_index |
