From 7ea38b43cba5544a7491fe6214bddcc3e6dbef09 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 26 Jul 2008 13:52:32 +0000 Subject: * 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 --- Tools/portbuild/scripts/makerestr | 41 +++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'Tools') 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 -- cgit v1.1