r2732 - jhalfs/branches/experimental/BLFS

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Tue May 30 05:16:24 PDT 2006


Author: georgeb
Date: 2006-05-30 06:16:23 -0600 (Tue, 30 May 2006)
New Revision: 2732

Modified:
   jhalfs/branches/experimental/BLFS/packages.sh
Log:
again, a little housekeeping

Modified: jhalfs/branches/experimental/BLFS/packages.sh
===================================================================
--- jhalfs/branches/experimental/BLFS/packages.sh	2006-05-30 12:15:47 UTC (rev 2731)
+++ jhalfs/branches/experimental/BLFS/packages.sh	2006-05-30 12:16:23 UTC (rev 2732)
@@ -4,6 +4,9 @@
 #
 set -e
 
+BLFS_XML=$1  # Book directory
+DOC_MODE=$2  # Action to take, only update at the moment
+
 #---------------------
 # packages module
 source libs/func_packages
@@ -11,12 +14,10 @@
 
 
 if [[ -z "$1" ]] ; then
-  echo -e "n\tYou must to provide the name of the BLFS book sources directory.\n"
+  echo -e "\n\tYou must to provide the name of the BLFS book sources directory.\n"
   exit 1
 fi
 
-BLFS_XML=$1
-
 if [[ ! -d $BLFS_XML ]] ; then
   echo -e "\n\t$BLFS_XML is not a directory\n"
   exit 1
@@ -27,8 +28,8 @@
   exit 1
 fi
 
-if [[ -n "$2" ]] ; then
-  case $2 in
+if [[ -n "$DOC_MODE" ]] ; then
+  case $DOC_MODE in
     update )
       if [[ -d $BLFS_XML/.svn ]] ; then
       echo -e "\n\tUpdating the $BLFS_XML book sources ...\n"
@@ -42,7 +43,7 @@
       fi
       ;;
     * )
-      echo -e "\n\tUnknown option $2 ignored.\n"
+      echo -e "\n\tUnknown option ${DOC_MODE} ignored.\n"
       ;;
   esac
 fi




More information about the alfs-log mailing list