aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-07-26 21:47:03 +0800
committerkris <kris@FreeBSD.org>2008-07-26 21:47:03 +0800
commitc6c6ed5be2d0c405bcf7906f134a7e05052846f2 (patch)
tree7cf582b192562e5b8e3cc02169fda830c25ec64d /Tools
parenta3bba94af490690bf740cf0a021693907d9a3095 (diff)
downloadfreebsd-ports-gnome-c6c6ed5be2d0c405bcf7906f134a7e05052846f2.tar.gz
freebsd-ports-gnome-c6c6ed5be2d0c405bcf7906f134a7e05052846f2.tar.zst
freebsd-ports-gnome-c6c6ed5be2d0c405bcf7906f134a7e05052846f2.zip
* Cleanup
* Catch up to build ID directory changes * Optimize by using __MAKE_SHELL=/rescue/sh
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makeduds32
1 files changed, 17 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/makeduds b/Tools/portbuild/scripts/makeduds
index f8f755841d98..a087ebf69a6c 100755
--- a/Tools/portbuild/scripts/makeduds
+++ b/Tools/portbuild/scripts/makeduds
@@ -1,35 +1,37 @@
#!/bin/sh
-# usage: $0 arch branch
+
+usage () {
+ echo "usage: makeduds arch branch buildid"
+ exit 1
+}
+
+if [ $# -ne 3 ]; then
+ usage
+fi
# configurable variables
pb=/var/portbuild
arch=$1
-shift
+branch=$2
+buildid=$3
+shift 3
-. ${pb}/${arch}/portbuild.conf
+builddir=${pb}/${arch}/${branch}/builds/${buildid}
+. ${pb}/${arch}/portbuild.conf
. ${pb}/scripts/buildenv
# -j# to make duds
DUDSJOBS=4
-usage () {
- echo "usage: makeduds branch"
- exit 1
-}
-if [ $# != 1 ]; then
- usage
-fi
-
-branch=$1
-
-buildenv ${pb} ${arch} ${branch}
+buildenv ${pb} ${arch} ${branch} ${builddir}
-duds=${pb}/${arch}/${branch}/duds
+duds=${builddir}/duds
index=${PORTSDIR}/${INDEXFILE}
unset DISPLAY
+export __MAKE_SHELL=/rescue/sh
export PACKAGE_BUILDING=1
export LOCALBASE=/nonexistentlocal
export X11BASE=/nonexistentx