summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2001-04-25 21:40:57 +0000
committersteve <steve@FreeBSD.org>2001-04-25 21:40:57 +0000
commiteb0e1376984bbd9c22846578a84c9398bcc4a8ce (patch)
tree75cf15ae4d94c1127f952cb776a15e296c797730 /release/scripts
parentc5e2a143fd14a3fcd99290d19b32d2558ce936f3 (diff)
downloadFreeBSD-src-eb0e1376984bbd9c22846578a84c9398bcc4a8ce.zip
FreeBSD-src-eb0e1376984bbd9c22846578a84c9398bcc4a8ce.tar.gz
- Add some environment variables that need to be present when using packages
from the build cluster. These are required to get the dependencies the same as the parallel builds. - Add an optional second argument that allows you to specific an alternate ports directory. - Remove the temporary file after we are done with it. - Remove ksh93 because it won't make it on the discs until the license issues are resolved. Approved by: jkh
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/print-cdrom-packages.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/release/scripts/print-cdrom-packages.sh b/release/scripts/print-cdrom-packages.sh
index aa04add..2b8f712 100755
--- a/release/scripts/print-cdrom-packages.sh
+++ b/release/scripts/print-cdrom-packages.sh
@@ -28,19 +28,27 @@
# so that the package name and dependency list for each can be at least be
# obtained in an automated fashion.
-# usage: extract-names cd#
+# The following are required if you obtained your packages from one of the
+# package building clusters or otherwise had these defined when the packages
+# were built.
+export BATCH=t
+export PACKAGE_BUILDING=t
+
+# usage: extract-names cd# [portsdir]
extract-names()
{
+ portsdir=${2-/usr/ports}
_FOO=`eval echo \\${CDROM_SET_$1}`
if [ "${_FOO}" ]; then
TMPNAME="/tmp/_extract_names$$"
rm -f ${TMPNAME}
for i in ${_FOO}; do
- ( cd /usr/ports/$i && make package-name package-depends ) >> ${TMPNAME};
+ ( cd $portsdir/$i && PORTSDIR=$portsdir make package-name package-depends ) >> ${TMPNAME};
done
if [ -s "${TMPNAME}" ]; then
- sort ${TMPNAME} | uniq
+ sort -u ${TMPNAME}
fi
+ rm -f ${TMPNAME}
else
exit 1
fi
@@ -82,9 +90,6 @@ CDROM_SET_1="${CDROM_SET_1} net/pcnfsd"
# This is the set of "people really want these" packages. Please add to
# this list.
CDROM_SET_1="${CDROM_SET_1} net/cvsup-bin"
-if [ "X`uname -m`" = "Xi386" ]; then
-CDROM_SET_1="${CDROM_SET_1} shells/ksh93"
-fi
CDROM_SET_1="${CDROM_SET_1} shells/bash2"
CDROM_SET_1="${CDROM_SET_1} shells/pdksh"
CDROM_SET_1="${CDROM_SET_1} shells/zsh"
@@ -135,8 +140,8 @@ CDROM_SET_1="${CDROM_SET_1} graphics/png"
# Start of actual script.
if [ $# -lt 1 ]; then
- echo "usage: $0 cdrom-number"
+ echo "usage: $0 cdrom-number [portsdir]"
exit 2
fi
-extract-names $1
+extract-names $*
exit 0
OpenPOWER on IntegriCloud