Added a poor-man test to --directory switch.
This commit is contained in:
parent
890acc612d
commit
e95c26c3bf
1 changed files with 13 additions and 4 deletions
17
master.sh
17
master.sh
|
@ -127,10 +127,19 @@ while test $# -gt 0 ; do
|
||||||
--directory | -D )
|
--directory | -D )
|
||||||
test $# = 1 && eval "$exit_missing_arg"
|
test $# = 1 && eval "$exit_missing_arg"
|
||||||
shift
|
shift
|
||||||
BUILDDIR=$1
|
case $1 in
|
||||||
JHALFSDIR=$BUILDDIR/jhalfs
|
-* )
|
||||||
LOGDIR=$JHALFSDIR/logs
|
echo -e "\n$1 isn't a valid build directory\n."
|
||||||
MKFILE=$JHALFSDIR/Makefile
|
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 ;;
|
--get-packages | -G ) HPKG=1 ;;
|
||||||
|
|
Reference in a new issue