r2408 - jhalfs/branches/experimental

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Sun Mar 26 06:12:56 PST 2006


Author: georgeb
Date: 2006-03-26 07:12:55 -0700 (Sun, 26 Mar 2006)
New Revision: 2408

Modified:
   jhalfs/branches/experimental/master.sh
Log:
master.sh, validated the extra book versions only for LFS otherwise an error

Modified: jhalfs/branches/experimental/master.sh
===================================================================
--- jhalfs/branches/experimental/master.sh	2006-03-25 19:35:38 UTC (rev 2407)
+++ jhalfs/branches/experimental/master.sh	2006-03-26 14:12:55 UTC (rev 2408)
@@ -14,7 +14,7 @@
 }
 
 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,20 +120,21 @@
         dev* | SVN | trunk )
           LFSVRS=development
           ;;
-        6.1.1 )
-          echo "For stable 6.1.1 book, please use jhalfs-0.2."
-          exit 0
+	*) 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." ;;
+	     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
           ;;
-        alpha*)
-          LFSVRS=alphabetical
-          ;;
-        udev*)
-          LFSVRS=udev_update
-          ;;
-        * )
-          echo "$1 is an unsupported version at this time."
-          exit 1
-          ;;
       esac
       ;;
 
@@ -146,8 +147,7 @@
       MKFILE=$JHALFSDIR/${PROGNAME}-Makefile
       ;;
 
-    --rebuild )	  CLEAN=1 ;;
-
+   
     --download-client | -D )
       echo "The download feature is temporarily disable.."
       exit
@@ -160,8 +160,8 @@
       test $# = 1 && eval "$exit_missing_arg"
       shift
       if [ -f $1/patches.ent ] ; then
-      WC=1
-      BOOK=$1
+        WC=1
+        BOOK=$1
       else
         echo -e "\nLook like $1 isn't a supported working copy."
         echo -e "Verify your selection and the command line.\n"
@@ -184,10 +184,11 @@
       esac
       ;;
 
-    --get-packages | -P )	HPKG=1    ;;
-    --run-make | -M )		RUNMAKE=1 ;;
-    --no-strip )	STRIP=0   ;;
-    --no-vim-lang )	VIMLANG=0 ;;
+    --get-packages | -P )  HPKG=1    ;;
+    --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 @@
 #   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}




More information about the alfs-log mailing list