Added a poor-man test to --directory switch.

This commit is contained in:
Manuel Canales Esparcia 2006-03-27 20:21:11 +00:00
parent 890acc612d
commit e95c26c3bf

View file

@ -127,11 +127,20 @@ while test $# -gt 0 ; do
--directory | -D )
test $# = 1 && eval "$exit_missing_arg"
shift
case $1 in
-* )
echo -e "\n$1 isn't a valid build directory\n."
echo -e "Directory names can't start with - .\n"
exit 1
;;
* )
BUILDDIR=$1
JHALFSDIR=$BUILDDIR/jhalfs
LOGDIR=$JHALFSDIR/logs
MKFILE=$JHALFSDIR/Makefile
;;
esac
;;
--get-packages | -G ) HPKG=1 ;;