Changeset d95b8f2


Ignore:
Timestamp:
03/26/2006 02:12:55 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
6c7fe49
Parents:
d2a9d60
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • master.sh

    rd2a9d60 rd95b8f2  
    1515
    1616see_ya() {
    17     echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}JHALFS${R_arrow}\n"
     17    echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}JHALFS-X${R_arrow}\n"
    1818}
    1919##### Simple error TRAPS
     
    121121          LFSVRS=development
    122122          ;;
    123         6.1.1 )
    124           echo "For stable 6.1.1 book, please use jhalfs-0.2."
    125           exit 0
    126           ;;
    127         alpha*)
    128           LFSVRS=alphabetical
    129           ;;
    130         udev*)
    131           LFSVRS=udev_update
    132           ;;
    133         * )
    134           echo "$1 is an unsupported version at this time."
    135           exit 1
     123        *) if [[ "$PROGNAME" = "lfs" ]]; then
     124             case $1 in
     125               6.1.1 )
     126                 echo "For stable 6.1.1 book, please use jhalfs-0.2."
     127                 exit 0
     128                ;;
     129               alpha*) LFSVRS=alphabetical  ;;
     130               udev*)  LFSVRS=udev_update   ;;
     131               * )     echo "$1 is an unsupported version at this time." ;;
     132             esac
     133           else
     134             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."
     135             exit 0
     136           fi
    136137          ;;
    137138      esac
     
    147148      ;;
    148149
    149     --rebuild )   CLEAN=1 ;;
    150 
     150   
    151151    --download-client | -D )
    152152      echo "The download feature is temporarily disable.."
     
    161161      shift
    162162      if [ -f $1/patches.ent ] ; then
    163       WC=1
    164       BOOK=$1
     163        WC=1
     164        BOOK=$1
    165165      else
    166166        echo -e "\nLook like $1 isn't a supported working copy."
     
    185185      ;;
    186186
    187     --get-packages | -P )       HPKG=1    ;;
    188     --run-make | -M )           RUNMAKE=1 ;;
    189     --no-strip )        STRIP=0   ;;
    190     --no-vim-lang )     VIMLANG=0 ;;
     187    --get-packages | -P )  HPKG=1    ;;
     188    --run-make | -M )      RUNMAKE=1 ;;
     189    --no-strip )           STRIP=0   ;;
     190    --no-vim-lang )        VIMLANG=0 ;;
     191    --rebuild )            CLEAN=1 ;;
    191192
    192193    --page_size )
     
    267268#   comand line
    268269#   default
    269 # If set by conf file leave or cmd line leave it
     270# If set by conf file or cmd line leave it
    270271# alone otherwise load the default version
    271272#===================================================
Note: See TracChangeset for help on using the changeset viewer.