diff --git a/master.sh b/master.sh index 1d8e2cd..d6b83f7 100755 --- a/master.sh +++ b/master.sh @@ -98,6 +98,7 @@ echo "---------------${nl_}" while test $# -gt 0 ; do case $1 in + # Common options for all books --book | -B ) test $# = 1 && eval "$exit_missing_arg" shift @@ -132,17 +133,6 @@ while test $# -gt 0 ; do MKFILE=$JHALFSDIR/Makefile ;; - --fstab | -F ) - test $# = 1 && eval "$exit_missing_arg" - shift - if [ -f $1 ] ; then - FSTAB=$1 - else - echo -e "\nFile $1 not found. Verify your command line.\n" - exit 1 - fi - ;; - --get-packages | -G ) HPKG=1 ;; --help | -h ) @@ -153,21 +143,6 @@ while test $# -gt 0 ; do fi ;; - --kernel-config | -K ) - test $# = 1 && eval "$exit_missing_arg" - shift - if [ -f $1 ] ; then - CONFIG=$1 - else - echo -e "\nFile $1 not found. Verify your command line.\n" - exit 1 - fi - ;; - - --make | -M ) RUNMAKE=1 ;; - - --rebuild | -R ) CLEAN=1 ;; - --testsuites | -T ) test $# = 1 && eval "$exit_missing_arg" shift @@ -230,6 +205,33 @@ while test $# -gt 0 ; do fi ;; + # Common options for LFS, CLFS and HLFS + --fstab | -F ) + test $# = 1 && eval "$exit_missing_arg" + shift + if [ -f $1 ] ; then + FSTAB=$1 + else + echo -e "\nFile $1 not found. Verify your command line.\n" + exit 1 + fi + ;; + + --kernel-config | -K ) + test $# = 1 && eval "$exit_missing_arg" + shift + if [ -f $1 ] ; then + CONFIG=$1 + else + echo -e "\nFile $1 not found. Verify your command line.\n" + exit 1 + fi + ;; + + --make | -M ) RUNMAKE=1 ;; + + --rebuild | -R ) CLEAN=1 ;; + * ) if [[ "$PROGNAME" = "blfs" ]]; then blfs_usage