diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2008-07-26 13:47:03 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2008-07-26 13:47:03 +0000 |
commit | e9fe4c98969a104b8e7582e097eb0742f098b668 (patch) | |
tree | caf512bc9e890733588fed9ec8a4c4abe4e289ae /Tools/portbuild | |
parent | 23fa193076ced43f5b3c1f1ef5b5859911c66250 (diff) | |
download | ports-e9fe4c98969a104b8e7582e097eb0742f098b668.tar.gz ports-e9fe4c98969a104b8e7582e097eb0742f098b668.zip |
Notes
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/makeduds | 32 |
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 |