diff options
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 |