aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2008-07-26 13:47:03 +0000
committerKris Kennaway <kris@FreeBSD.org>2008-07-26 13:47:03 +0000
commite9fe4c98969a104b8e7582e097eb0742f098b668 (patch)
treecaf512bc9e890733588fed9ec8a4c4abe4e289ae /Tools
parent23fa193076ced43f5b3c1f1ef5b5859911c66250 (diff)
downloadports-e9fe4c98969a104b8e7582e097eb0742f098b668.tar.gz
ports-e9fe4c98969a104b8e7582e097eb0742f098b668.zip
Notes
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