Absolute path feature for packit

This commit is contained in:
Ben Gras 2006-03-17 15:32:14 +00:00
parent d2e0cbc872
commit ac9a157ba2
2 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,10 @@ fi
dir=`pwd` dir=`pwd`
if [ "$1" = "-" ] if [ "$1" = "-" ]
then f="" then f=""
else f=$dir/$1 else case "$1" in
/*) f="$1" ;;
*) f="$dir/$1" ;;
esac
fi fi
set -e set -e

View file

@ -43,12 +43,13 @@ then pack=${cddrive}p2
then echo "Installing $srcarc into $SRC." then echo "Installing $srcarc into $SRC."
smallbunzip2 -dc "$srcarc" | (cd $SRC && tar xf - ) smallbunzip2 -dc "$srcarc" | (cd $SRC && tar xf - )
fi fi
else :
fi fi
fi fi
done done
else echo "CD mount failed - skipping CD packages." else echo "CD mount failed - skipping CD packages."
fi 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 fi
TMPF=/tmp/list.$$ TMPF=/tmp/list.$$