aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-06-11 21:28:30 +0800
committerkris <kris@FreeBSD.org>2008-06-11 21:28:30 +0800
commitc69623d05dd8d0b595baf3c9da6ebd1ac1b89dc2 (patch)
tree3f665a77718b4332d2062cd70136ddf68a38a3f1 /Tools/portbuild
parent56d846dd746f6139a6dd54e19dcde4eb3e4e5d0d (diff)
downloadfreebsd-ports-gnome-c69623d05dd8d0b595baf3c9da6ebd1ac1b89dc2.tar.gz
freebsd-ports-gnome-c69623d05dd8d0b595baf3c9da6ebd1ac1b89dc2.tar.zst
freebsd-ports-gnome-c69623d05dd8d0b595baf3c9da6ebd1ac1b89dc2.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)
Diffstat (limited to 'Tools/portbuild')
-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"