From 94ebfe0c5fc0326e02a71e2744d4edfa7d0e6a84 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Mon, 20 May 2002 08:29:21 +0000 Subject: Track setup.sh usage. --- Tools/scripts/release/README | 2 +- Tools/scripts/release/doit.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Tools') diff --git a/Tools/scripts/release/README b/Tools/scripts/release/README index 1238ee23634b..9e1ea5e2270c 100644 --- a/Tools/scripts/release/README +++ b/Tools/scripts/release/README @@ -20,7 +20,7 @@ PWD=`pwd` 3) cd $PWD/releng 4) make RELEASE=4.6-RELEASE SRCSCRIPTDIR=${PWD}/srcscripts 5) cd 4.6-RELEASE -6) ./doit.sh +6) ./doit.sh [ answer prompts and stuff as it appears ] More documentation to come later. diff --git a/Tools/scripts/release/doit.sh b/Tools/scripts/release/doit.sh index d2ac491784a8..3e6b54947e02 100755 --- a/Tools/scripts/release/doit.sh +++ b/Tools/scripts/release/doit.sh @@ -1,6 +1,7 @@ #!/bin/sh # $FreeBSD$ +pathtoports=$1 dir=`dirname $0` if [ "X$dir" = "X." ]; then dir=`pwd` @@ -28,7 +29,11 @@ scripts="$dir" test -d $logs || mkdir -p $logs if [ ! -d "$ports" ]; then - $scripts/setup.sh + if [ -z "$pathtoports" ]; then + echo "Missing path to ports/packages toree to process for setup.sh." + exit 1 + fi + $scripts/setup.sh $pathtoports echo "" echo "Make sure you tweak $dir/config to suit your needs." echo "" -- cgit v1.2.3