master.sh, validated the extra book versions only for LFS otherwise an error

This commit is contained in:
George Boudreau 2006-03-26 14:12:55 +00:00
parent d2a9d60e49
commit d95b8f2eb2

View file

@ -14,7 +14,7 @@ simple_error() { # Basic error trap.... JUST DIE
} }
see_ya() { 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 ##### Simple error TRAPS
# ctrl-c SIGINT # ctrl-c SIGINT
@ -120,19 +120,20 @@ while test $# -gt 0 ; do
dev* | SVN | trunk ) dev* | SVN | trunk )
LFSVRS=development LFSVRS=development
;; ;;
*) if [[ "$PROGNAME" = "lfs" ]]; then
case $1 in
6.1.1 ) 6.1.1 )
echo "For stable 6.1.1 book, please use jhalfs-0.2." echo "For stable 6.1.1 book, please use jhalfs-0.2."
exit 0 exit 0
;; ;;
alpha*) alpha*) LFSVRS=alphabetical ;;
LFSVRS=alphabetical udev*) LFSVRS=udev_update ;;
;; * ) echo "$1 is an unsupported version at this time." ;;
udev*) esac
LFSVRS=udev_update 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
echo "$1 is an unsupported version at this time." fi
exit 1
;; ;;
esac esac
;; ;;
@ -146,7 +147,6 @@ while test $# -gt 0 ; do
MKFILE=$JHALFSDIR/${PROGNAME}-Makefile MKFILE=$JHALFSDIR/${PROGNAME}-Makefile
;; ;;
--rebuild ) CLEAN=1 ;;
--download-client | -D ) --download-client | -D )
echo "The download feature is temporarily disable.." echo "The download feature is temporarily disable.."
@ -188,6 +188,7 @@ while test $# -gt 0 ; do
--run-make | -M ) RUNMAKE=1 ;; --run-make | -M ) RUNMAKE=1 ;;
--no-strip ) STRIP=0 ;; --no-strip ) STRIP=0 ;;
--no-vim-lang ) VIMLANG=0 ;; --no-vim-lang ) VIMLANG=0 ;;
--rebuild ) CLEAN=1 ;;
--page_size ) --page_size )
test $# = 1 && eval "$exit_missing_arg" test $# = 1 && eval "$exit_missing_arg"
@ -266,7 +267,7 @@ fi
# xxx.config # xxx.config
# comand line # comand line
# default # 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 # alone otherwise load the default version
#=================================================== #===================================================
BOOK=${BOOK:=$PROGNAME-$LFSVRS} BOOK=${BOOK:=$PROGNAME-$LFSVRS}