From 7e1beb210cecb193e2972dff1a1da8af19ffbef5 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 8 Mar 2004 01:52:45 +0000 Subject: Break out a script from dopackages for building the restricted.sh file so it can be easily done manually --- Tools/portbuild/scripts/makerestr | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 Tools/portbuild/scripts/makerestr (limited to 'Tools') diff --git a/Tools/portbuild/scripts/makerestr b/Tools/portbuild/scripts/makerestr new file mode 100755 index 0000000..adcc2a9 --- /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 -- cgit v1.1