aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2008-06-11 13:28:30 +0000
committerKris Kennaway <kris@FreeBSD.org>2008-06-11 13:28:30 +0000
commit8a8d78247cbbf223f6e2613a532ff80ff132834d (patch)
treece0e6420be7cddd9d36866c7c949b09ca35cb299 /Tools
parentfce1fcb22a432bf61411d1bbde15032e1afc3452 (diff)
downloadports-8a8d78247cbbf223f6e2613a532ff80ff132834d.tar.gz
ports-8a8d78247cbbf223f6e2613a532ff80ff132834d.zip
* Distfile collection is now the default; replace -distfiles with -nodistfiles
* Record the CVS update stamp in some extra places and make sure to remove it if the build is started with -noportscvs (since this probably means the ports tree was updated by hand at some random time)
Notes
Notes: svn path=/head/; revision=214665
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackages22
1 files changed, 13 insertions, 9 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages
index 95a80f060fd2..61f23de5832c 100755
--- a/Tools/portbuild/scripts/dopackages
+++ b/Tools/portbuild/scripts/dopackages
@@ -18,7 +18,7 @@ errorexit () {
}
usage () {
- echo "usage: [-continue] [-incremental] [-restart] [-nofinish] [-finish] [-ftp] [-cdrom] [-nobuild] [-noindex] [-noduds] [-norestr] [-nocvs] [-noportscvs] [-noplistcheck] [-distfiles] [-fetch-original] [-trybroken] branch date"
+ echo "usage: [-continue] [-incremental] [-restart] [-nofinish] [-finish] [-ftp] [-cdrom] [-nobuild] [-noindex] [-noduds] [-norestr] [-nocvs] [-noportscvs] [-noplistcheck] [-nodistfiles] [-fetch-original] [-trybroken] branch date"
errorexit 1
}
@@ -176,7 +176,7 @@ restart=0
cont=0
finish=0
nofinish=0
-dodistfiles=0
+dodistfiles=1
fetch_orig=0
trybroken=0
incremental=0
@@ -211,8 +211,8 @@ while [ $# -gt 2 ]; do
x-ftp)
ftp=1
;;
- x-distfiles)
- dodistfiles=1
+ x-nodistfiles)
+ dodistfiles=0
;;
x-fetch-original)
fetch_orig=1
@@ -298,6 +298,8 @@ if [ "$skipstart" = 0 ]; then
cvs -qR update -PAd
# XXX Check for conflicts
date > ${pb}/${arch}/${branch}/cvsdone
+ else
+ rm -f ${pb}/${arch}/${branch}/cvsdone
fi
if [ "$nocvs" = 0 ]; then
@@ -382,8 +384,12 @@ if [ "$skipstart" = 0 ]; then
ln -sf ${newlogs} ${pb}/${arch}/${branch}/logs
echo "error logs in ${newerrors}"
- cp -p ${pb}/${arch}/${branch}/cvsdone ${newerrors}/cvsdone
- cp -p ${pb}/${arch}/${branch}/cvsdone ${newlogs}/cvsdone
+ if [ -f "${pb}/${arch}/${branch}/cvsdone" ]; then
+ cp -p ${pb}/${arch}/${branch}/cvsdone ${newerrors}/cvsdone
+ cp -p ${pb}/${arch}/${branch}/cvsdone ${newlogs}/cvsdone
+ else
+ rm -f ${newerrors}/cvsdone ${newlogs}/cvsdone
+ fi
cp -p ${pb}/${arch}/${branch}/duds ${newerrors}/duds
cp -p ${pb}/${arch}/${branch}/duds ${newlogs}/duds
cp -p ${pb}/${arch}/${branch}/ports/${INDEXFILE} ${newerrors}/INDEX
@@ -588,9 +594,7 @@ if [ "$nofinish" = 0 ]; then
echo "================================================"
echo "started at $(date)"
cd ${pb}/${arch}
- ${scripts}/dodistfiles ${pb}/${arch}/${branch}/distfiles
- rm -rf ${pb}/${arch}/${branch}/distfiles/.pbtmp
- rm -f ${pb}/${arch}/${branch}/distfiles/.done
+ ${scripts}/dodistfiles ${arch} ${branch}
# Always delete restricted distfiles
echo "deleting restricted distfiles"