summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-05-17 00:25:14 +0000
committerkris <kris@FreeBSD.org>2003-05-17 00:25:14 +0000
commit38591923b5e4a3276530dc2a835b0734091fb472 (patch)
tree14040119b4146f9a15424ff51af90c922081084d /Tools
parent710464c00fe62f4c2685cfb5e2171a260429a4c2 (diff)
downloadFreeBSD-ports-38591923b5e4a3276530dc2a835b0734091fb472.zip
FreeBSD-ports-38591923b5e4a3276530dc2a835b0734091fb472.tar.gz
Add a -distfiles flag to specify that we should retain distfiles for later
processing (e.g. transfer to ftp site). It was taking up too much disk space to collect distfiles for 14 architecture/version combinations (including the backup set from the previous run). Put the cvsdone files in the arch/branch subdirectory, not arch/.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackages16
1 files changed, 12 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages
index 87cbe23..43b5490 100755
--- a/Tools/portbuild/scripts/dopackages
+++ b/Tools/portbuild/scripts/dopackages
@@ -20,7 +20,7 @@ errorexit () {
}
usage () {
- echo "usage: [-continue] [-nofinish] [-finish] [-restart] [-ftp] [-cdrom] [-nodummy] [-nobuild] [-noindex] [-noduds] [-nocvsup] [-nocvs] [-noportscvs] [-norestr] [-plistcheck] branch date"
+ echo "usage: [-continue] [-nofinish] [-finish] [-restart] [-ftp] [-cdrom] [-nodummy] [-nobuild] [-noindex] [-noduds] [-nocvsup] [-nocvs] [-noportscvs] [-norestr] [-plistcheck] [-distfiles] branch date"
errorexit 1
}
@@ -204,6 +204,7 @@ restart=0
cont=0
finish=0
nofinish=0
+dodistfiles=0
# optional arguments
while [ $# -gt 2 ]; do
@@ -241,6 +242,9 @@ while [ $# -gt 2 ]; do
x-ftp)
ftp=1
;;
+ x-distfiles)
+ dodistfiles=1
+ ;;
x-continue)
cont=1
;;
@@ -281,6 +285,10 @@ if [ "$norestr" = 1 ]; then
export NO_RESTRICTED=1
fi
+if [ "$dodistfiles" = 1 ]; then
+ export WANT_DISTFILES=1
+fi
+
if [ "$plistcheck" = 1 ]; then
export PLISTCHECK=1
fi
@@ -305,7 +313,7 @@ if [ "$skipstart" = 0 ]; then
cvs -qR update -PAd
# XXX Check for conflicts
fi
- date > ${pb}/${arch}/cvsdone
+ date > ${pb}/${arch}/${branch}/cvsdone
echo "================================================"
echo "running cvs update on ${pb}/${arch}/doc"
@@ -424,8 +432,8 @@ if [ "$skipstart" = 0 ]; then
# chown -RL ${user} errors logs packages
echo "error logs in ${pb}/${arch}/archive/errorlogs/e.${branch}.${date}"
- cp -p ${pb}/${arch}/cvsdone ${pb}/${arch}/archive/errorlogs/e.${branch}.${date}/cvsdone
- cp -p ${pb}/${arch}/cvsdone ${pb}/${arch}/archive/errorlogs/a.${branch}.${date}/cvsdone
+ cp -p ${pb}/${arch}/${branch}/cvsdone ${pb}/${arch}/archive/errorlogs/e.${branch}.${date}/cvsdone
+ cp -p ${pb}/${arch}/${branch}/cvsdone ${pb}/${arch}/archive/errorlogs/a.${branch}.${date}/cvsdone
cp -p ${pb}/${arch}/${branch}/ports/${INDEXFILE} ${pb}/${arch}/archive/errorlogs/e.${branch}.${date}/INDEX
cp -p ${pb}/${arch}/${branch}/ports/${INDEXFILE} ${pb}/${arch}/archive/errorlogs/a.${branch}.${date}/INDEX
OpenPOWER on IntegriCloud