From: Ben Gras Date: Fri, 17 Mar 2006 15:32:14 +0000 (+0000) Subject: Absolute path feature for packit X-Git-Tag: v3.1.2a~188 X-Git-Url: http://zhaoyanbai.com/repos/rndc-confgen.html?a=commitdiff_plain;h=ac9a157ba2a6a958553ce1a5516ba33320e88137;p=minix.git Absolute path feature for packit --- diff --git a/commands/scripts/packit.sh b/commands/scripts/packit.sh index afe2ba4ad..ecbfda16f 100644 --- a/commands/scripts/packit.sh +++ b/commands/scripts/packit.sh @@ -13,7 +13,10 @@ fi dir=`pwd` if [ "$1" = "-" ] then f="" -else f=$dir/$1 +else case "$1" in + /*) f="$1" ;; + *) f="$dir/$1" ;; + esac fi set -e diff --git a/commands/scripts/packme.sh b/commands/scripts/packme.sh index 7578656f7..a83728114 100644 --- a/commands/scripts/packme.sh +++ b/commands/scripts/packme.sh @@ -43,12 +43,13 @@ then pack=${cddrive}p2 then echo "Installing $srcarc into $SRC." smallbunzip2 -dc "$srcarc" | (cd $SRC && tar xf - ) fi + else : fi fi done else echo "CD mount failed - skipping CD packages." fi -else echo "Don't know where the install CD is." +else echo "Don't know where the install CD is. You can set it in $RC." fi TMPF=/tmp/list.$$