diff options
author | kris <kris@FreeBSD.org> | 2008-07-26 13:52:32 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2008-07-26 13:52:32 +0000 |
commit | 7ea38b43cba5544a7491fe6214bddcc3e6dbef09 (patch) | |
tree | 5ad8163391f4ea1240029a3f88315b83d157bfcb /Tools | |
parent | 00fd130f510fd7d1760d751b6c366c84090ab917 (diff) | |
download | FreeBSD-ports-7ea38b43cba5544a7491fe6214bddcc3e6dbef09.zip FreeBSD-ports-7ea38b43cba5544a7491fe6214bddcc3e6dbef09.tar.gz |
* Cleanup
* Catch up to build ID directory changes
* Optimize by using ECHO_MSG=true instead of /usr/bin/true
* Try harder to avoid pollution from local host
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/makerestr | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Tools/portbuild/scripts/makerestr b/Tools/portbuild/scripts/makerestr index 7e575f2..4fe8ec9 100755 --- a/Tools/portbuild/scripts/makerestr +++ b/Tools/portbuild/scripts/makerestr @@ -1,34 +1,41 @@ #!/bin/sh -# usage: $0 arch branch + +usage () { + echo "usage: makerestr arch branch buildid" + exit 1 +} +if [ $# -ne 3 ]; then + usage +fi # configurable variables pb=/var/portbuild arch=$1 +branch=$2 +buildid=$3 shift . ${pb}/${arch}/portbuild.conf - . ${pb}/scripts/buildenv -usage () { - echo "usage: makerestr branch" - exit 1 -} -if [ $# != 1 ]; then - usage -fi - -branch=$1 +builddir=${pb}/${arch}/${branch}/builds/${buildid} -buildenv ${pb} ${arch} ${branch} +buildenv ${pb} ${arch} ${branch} ${builddir} -duds=${pb}/${arch}/${branch}/duds +duds=${builddir}/duds unset DISPLAY +export __MAKE_SHELL=/rescue/sh export PACKAGE_BUILDING=1 +export LOCALBASE=/nonexistentlocal +export X11BASE=/nonexistentx +export LINUXBASE=/nonexistentlinux +export PKG_DBDIR=/nonexistentpkg +export PORT_DBDIR=/nonexistentport + cd ${PORTSDIR} -make -j4 ECHO_MSG=/usr/bin/true clean-restricted-list \ - | sed -e "s./usr/ports/packages/.${pb}/${arch}/${branch}/packages/.g" \ - -e "s./usr/ports/.${pb}/${arch}/${branch}/ports/.g" \ - > ${pb}/${arch}/${branch}/restricted.sh +make -j4 ECHO_MSG=true clean-restricted-list \ + | sed -e "s./usr/ports/packages/.${builddir}/packages/.g" \ + -e "s./usr/ports/.${builddir}/ports/.g" \ + > ${builddir}/restricted.sh |