diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-03-08 01:52:45 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-03-08 01:52:45 +0000 |
commit | 9ee56fac4b945aab7f52ec2e714dd1531be87b24 (patch) | |
tree | 3b21d16a66fc85cb23ad221c04172bf016dbb10a /Tools | |
parent | 3bfeb225a1d7bcb52cdfabcca04069f7c2e8b652 (diff) | |
download | ports-9ee56fac4b945aab7f52ec2e714dd1531be87b24.tar.gz ports-9ee56fac4b945aab7f52ec2e714dd1531be87b24.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/makerestr | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/makerestr b/Tools/portbuild/scripts/makerestr new file mode 100755 index 000000000000..adcc2a9a4511 --- /dev/null +++ b/Tools/portbuild/scripts/makerestr @@ -0,0 +1,34 @@ +#!/bin/sh +# usage: $0 arch branch + +# configurable variables +pb=/var/portbuild +arch=$1 +shift + +. ${pb}/${arch}/portbuild.conf + +. ${pb}/scripts/buildenv + +usage () { + echo "usage: makerestr branch" + exit 1 +} +if [ $# != 1 ]; then + usage +fi + +branch=$1 + +buildenv ${pb} ${arch} ${branch} + +duds=${pb}/${arch}/${branch}/duds + +unset DISPLAY + +export PACKAGE_BUILDING=1 +cd ${PORTSDIR} +make 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 |