Changeset 5627958


Ignore:
Timestamp:
03/27/2006 06:33:53 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
f80c1e0
Parents:
c6b24b4
Message:

Revising command line switches. First round.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • master.sh

    rc6b24b4 r5627958  
    113113      ;;
    114114
    115     --LFS-version | -L )
     115    --book | -B )
    116116      test $# = 1 && eval "$exit_missing_arg"
    117117      shift
     
    120120          LFSVRS=development
    121121          ;;
    122         *) if [[ "$PROGNAME" = "lfs" ]]; then
    123              case $1 in
     122        *) if [[ "$PROGNAME" = "lfs" ]]; then
     123             case $1 in
    124124               6.1.1 )
    125125                 echo "For stable 6.1.1 book, please use jhalfs-0.2."
     
    129129               udev*)  LFSVRS=udev_update   ;;
    130130               * )     echo "$1 is an unsupported version at this time." ;;
    131              esac
    132            else
    133              echo "The requested version, ${L_arrow} ${BOLD}$1${OFF} ${R_arrow}, is undefined in the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} series."
     131             esac
     132           else
     133             echo "The requested version, ${L_arrow} ${BOLD}$1${OFF} ${R_arrow}, is undefined in the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} series."
    134134             exit 0
    135135           fi
     
    147147      ;;
    148148
    149    
    150     --download-client | -D )
    151       echo "The download feature is temporarily disable.."
    152       exit
    153       test $# = 1 && eval "$exit_missing_arg"
    154       shift
    155       DL=$1
    156       ;;
    157 
    158149    --working-copy | -W )
    159150      test $# = 1 && eval "$exit_missing_arg"
    160151      shift
    161       if [ -f $1/patches.ent ] ; then
    162         WC=1
    163         BOOK=$1
    164       else
    165         echo -e "\nLook like $1 isn't a supported working copy."
    166         echo -e "Verify your selection and the command line.\n"
    167         exit 1
    168       fi
    169       ;;
     152      case $PROGNAME in # Poor checks. We should find better ones.
     153        lfs)
     154          if [ -f $1/patches.ent ] ; then
     155            WC=1
     156            BOOK=$1
     157          else
     158            echo -e "\nLook like $1 isn't a LFS working copy."
     159            exit 1
     160          fi
     161          ;;
     162        clfs)
     163          if [ -f $1/patches.ent ] && [ -f $1/packages.ent ]; then
     164            WC=1
     165            BOOK=$1
     166          else
     167            echo -e "\nLook like $1 isn't a CLFS working copy."
     168            exit 1
     169          fi
     170          ;;
     171        hlfs)
     172          if [ -f $1/template.xml ] ; then
     173            WC=1
     174            BOOK=$1
     175          else
     176            echo -e "\nLook like $1 isn't a HLFS working copy."
     177            exit 1
     178          fi
     179          ;;
     180        blfs)
     181          if [ -f $1/use-unzip.xml ] ; then
     182            WC=1
     183            BOOK=$1
     184          else
     185            echo -e "\nLook like $1 isn't a BLFS working copy."
     186            exit 1
     187          fi
     188          ;;
    170189
    171190    --testsuites | -T )
     
    186205    --get-packages | -P )  HPKG=1    ;;
    187206    --run-make | -M )      RUNMAKE=1 ;;
    188     --no-strip )           STRIP=0   ;;
    189     --no-vim-lang )        VIMLANG=0 ;;
    190207    --rebuild )            CLEAN=1   ;;
    191 
    192     --page_size )
    193       test $# = 1 && eval "$exit_missing_arg"
    194       shift
    195       case $1 in
    196         letter | A4 )
    197           PAGE=$1
    198           ;;
    199         * )
    200           echo "$1 isn't a supported page size."
    201           exit 1
    202           ;;
    203       esac
    204       ;;
    205 
    206     --timezone )
    207       test $# = 1 && eval "$exit_missing_arg"
    208       shift
    209       if [ -f /usr/share/zoneinfo/$1 ] ; then
    210         TIMEZONE=$1
    211       else
    212         echo -e "\nLooks like $1 isn't a valid timezone description."
    213         echo -e "Verify your selection and the command line.\n"
    214         exit 1
    215       fi
    216       ;;
    217208
    218209    --fstab )
Note: See TracChangeset for help on using the changeset viewer.