master.sh, validated the extra book versions only for LFS otherwise an error
This commit is contained in:
parent
d2a9d60e49
commit
d95b8f2eb2
1 changed files with 24 additions and 23 deletions
25
master.sh
25
master.sh
|
@ -14,7 +14,7 @@ simple_error() { # Basic error trap.... JUST DIE
|
|||
}
|
||||
|
||||
see_ya() {
|
||||
echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}JHALFS${R_arrow}\n"
|
||||
echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}JHALFS-X${R_arrow}\n"
|
||||
}
|
||||
##### Simple error TRAPS
|
||||
# ctrl-c SIGINT
|
||||
|
@ -120,19 +120,20 @@ while test $# -gt 0 ; do
|
|||
dev* | SVN | trunk )
|
||||
LFSVRS=development
|
||||
;;
|
||||
*) if [[ "$PROGNAME" = "lfs" ]]; then
|
||||
case $1 in
|
||||
6.1.1 )
|
||||
echo "For stable 6.1.1 book, please use jhalfs-0.2."
|
||||
exit 0
|
||||
;;
|
||||
alpha*)
|
||||
LFSVRS=alphabetical
|
||||
;;
|
||||
udev*)
|
||||
LFSVRS=udev_update
|
||||
;;
|
||||
* )
|
||||
echo "$1 is an unsupported version at this time."
|
||||
exit 1
|
||||
alpha*) LFSVRS=alphabetical ;;
|
||||
udev*) LFSVRS=udev_update ;;
|
||||
* ) echo "$1 is an unsupported version at this time." ;;
|
||||
esac
|
||||
else
|
||||
echo "This requested version, ${L_arrow} ${BOLD}$1${OFF} ${R_arrow}, is an unsupported in the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} series."
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
@ -146,7 +147,6 @@ while test $# -gt 0 ; do
|
|||
MKFILE=$JHALFSDIR/${PROGNAME}-Makefile
|
||||
;;
|
||||
|
||||
--rebuild ) CLEAN=1 ;;
|
||||
|
||||
--download-client | -D )
|
||||
echo "The download feature is temporarily disable.."
|
||||
|
@ -188,6 +188,7 @@ while test $# -gt 0 ; do
|
|||
--run-make | -M ) RUNMAKE=1 ;;
|
||||
--no-strip ) STRIP=0 ;;
|
||||
--no-vim-lang ) VIMLANG=0 ;;
|
||||
--rebuild ) CLEAN=1 ;;
|
||||
|
||||
--page_size )
|
||||
test $# = 1 && eval "$exit_missing_arg"
|
||||
|
@ -266,7 +267,7 @@ fi
|
|||
# xxx.config
|
||||
# comand line
|
||||
# default
|
||||
# If set by conf file leave or cmd line leave it
|
||||
# If set by conf file or cmd line leave it
|
||||
# alone otherwise load the default version
|
||||
#===================================================
|
||||
BOOK=${BOOK:=$PROGNAME-$LFSVRS}
|
||||
|
|
Reference in a new issue