From eb0e1376984bbd9c22846578a84c9398bcc4a8ce Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 25 Apr 2001 21:40:57 +0000 Subject: - 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 --- release/scripts/print-cdrom-packages.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'release/scripts') 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 -- cgit v1.1