summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2008-07-26 13:52:32 +0000
committerKris Kennaway <kris@FreeBSD.org>2008-07-26 13:52:32 +0000
commit46a114508f96a66857ce7d41989b87f3c68fe45d (patch)
tree97f49735d0ba5fe6d1619169b9dd47c697a55992 /Tools
parent* Cleanup (diff)
* 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
Notes
Notes: svn path=/head/; revision=217574
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makerestr41
1 files changed, 24 insertions, 17 deletions
diff --git a/Tools/portbuild/scripts/makerestr b/Tools/portbuild/scripts/makerestr
index 7e575f2387c6..4fe8ec944703 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