diff options
author | kris <kris@FreeBSD.org> | 2008-07-26 21:47:03 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2008-07-26 21:47:03 +0800 |
commit | c6c6ed5be2d0c405bcf7906f134a7e05052846f2 (patch) | |
tree | 7cf582b192562e5b8e3cc02169fda830c25ec64d /Tools | |
parent | a3bba94af490690bf740cf0a021693907d9a3095 (diff) | |
download | freebsd-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-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 |