aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-07-26 21:51:30 +0800
committerkris <kris@FreeBSD.org>2008-07-26 21:51:30 +0800
commit00fd130f510fd7d1760d751b6c366c84090ab917 (patch)
treec76dc2255d03540c768cebf9bbacdb052aa14c69 /Tools
parentf8df8ff4de59ee301e8b90cdfedefc112e914a10 (diff)
downloadfreebsd-ports-gnome-00fd130f510fd7d1760d751b6c366c84090ab917.tar.gz
freebsd-ports-gnome-00fd130f510fd7d1760d751b6c366c84090ab917.tar.zst
freebsd-ports-gnome-00fd130f510fd7d1760d751b6c366c84090ab917.zip
* Cleanup
* Catch up to build ID directory layout
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makeparallel25
1 files changed, 18 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/makeparallel b/Tools/portbuild/scripts/makeparallel
index a992380cb52a..2a41e59b43c2 100755
--- a/Tools/portbuild/scripts/makeparallel
+++ b/Tools/portbuild/scripts/makeparallel
@@ -2,18 +2,28 @@
pb=/var/portbuild
-if [ $# -ne 2 ]; then
- echo "usage: makeparallel arch branch"
+if [ $# -ne 3 ]; then
+ echo "usage: makeparallel arch branch buildid"
exit 1
fi
arch=$1
branch=$2
+buildid=$3
+shift 3
. ${pb}/${arch}/portbuild.conf
. ${pb}/scripts/buildenv
-buildenv ${pb} ${arch} ${branch}
+buildid=$(resolve ${pb} ${arch} ${branch} ${buildid})
+if [ -z "${buildid}" ]; then
+ echo "Invalid build ID ${buildid}"
+ exit 1
+fi
+
+builddir=${pb}/${arch}/${branch}/builds/${buildid}
+
+buildenv ${pb} ${arch} ${branch} ${builddir}
# packages that take a long time to build or have very deep dependency
# trees and tend to stall the rest of the cluster waiting for them.
@@ -23,17 +33,18 @@ quickports="lang/ghc x11/xorg x11/gnome2 x11/kde3 java/jdk14 java/jdk15 java/jdk
cd ${PORTSDIR}
subdir=$(make -V SUBDIR)
-makefile=${pb}/${arch}/${branch}/Makefile
+makefile=${builddir}/Makefile
rm ${makefile}
SUBDIR=$(make -V SUBDIR)
(for dir in ${SUBDIR}; do
[ -r ${dir}/Makefile ] && echo "all: ${dir}-all" || true
done
-env arch=${arch} branch=${branch} awk -F '|' '{me=$1; here=$2; bdep=$8; rdep=$9
+env arch=${arch} branch=${branch} buildid=${buildid} awk -F '|' '{me=$1; here=$2; bdep=$8; rdep=$9
edep=$11; pdep=$12; fdep=$13
sufx=ENVIRON["PKGSUFFIX"]
arch=ENVIRON["arch"]
+ buildid=ENVIRON["buildid"]
branch=ENVIRON["branch"]
split(here, tmp, "/")
if (edep != "") { gsub("$", sufx, edep); gsub(" ", sufx " ", edep) }
@@ -50,8 +61,8 @@ env arch=${arch} branch=${branch} awk -F '|' '{me=$1; here=$2; bdep=$8; rdep=$9
if (fdep != "") printf(" FD=\"%s\"", fdep)
if (bdep != "") printf(" BD=\"%s\"", bdep)
if (rdep != "") printf(" RD=\"%s\"", rdep)
- printf(" /var/portbuild/scripts/pdispatch %s %s /var/portbuild/scripts/portbuild %s%s %s\n",
- arch, branch, me, sufx, here)
+ printf(" /var/portbuild/scripts/pdispatch %s %s %s /var/portbuild/scripts/portbuild %s%s %s\n",
+ arch, branch, buildid, me, sufx, here)
}' < ${INDEXFILE}) > ${makefile}
for i in ${quickports}; do