Changeset cfdc0f1 for jhalfs


Ignore:
Timestamp:
08/27/2006 11:14:01 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
9425fd9
Parents:
2b0f8a5
Message:

Started blfs-tool support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r2b0f8a5 rcfdc0f1  
    9191[[ $VERBOSITY > 0 ]] && echo "OK"
    9292
    93       #--- Envars not sourced from configuration (yet)
     93      #--- Envars not sourced from configuration
    9494declare -r SVN="svn://svn.linuxfromscratch.org"
    9595declare -r LOG=000-masterscript.log
    96 
    97 case $PROGNAME in
    98   clfs2) LFSVRS=development; TREE=branches/clfs-2.0/BOOK ;;
    99       *) LFSVRS=development; TREE=trunk/BOOK             ;;
    100 esac
    101 
    102 if [[ ! -z ${BRANCH_ID} ]]; then
    103   case $BRANCH_ID in
    104     dev* | SVN | trunk )
    105       case $PROGNAME in
    106         clfs2 ) TREE=branches/clfs-2.0/BOOK ;;
    107              *) TREE=trunk/BOOK ;;
    108       esac
    109       LFSVRS=development
    110       ;;
    111     branch-* )
    112       LFSVRS=${BRANCH_ID}
    113       TREE=branches/${BRANCH_ID#branch-}/BOOK
    114       ;;
    115     * )
    116       case $PROGNAME in
    117         lfs | hlfs )
    118           LFSVRS=${BRANCH_ID}
    119           TREE=tags/${BRANCH_ID}/BOOK
    120           ;;
    121         clfs | clfs2 )
    122           LFSVRS=${BRANCH_ID}
    123           TREE=tags/${BRANCH_ID}
    124           ;;
    125       esac
    126       ;;
    127   esac
    128 fi
    12996
    13097# These are boolean vars generated from Config.in.
     
    147114GRSECURITY_HOST=${GRSECURITY_HOST:-n}
    148115
     116# Book surces envars
     117BRANCH_ID=${BRANCH_ID:=development}
     118
     119case $BRANCH_ID in
     120  development )
     121    case $PROGNAME in
     122      clfs2 ) TREE=branches/clfs-2.0/BOOK ;;
     123           *) TREE=trunk/BOOK ;;
     124    esac
     125    LFSVRS=development
     126    ;;
     127  *EDIT* )  echo " You forgot to set the branch or stable book version."
     128            echo " Please rerun make and fix the configuration."
     129            exit 2 ;;
     130  branch-* )
     131    LFSVRS=${BRANCH_ID}
     132    TREE=branches/${BRANCH_ID#branch-}/BOOK
     133    ;;
     134  * )
     135    case $PROGNAME in
     136      lfs | hlfs )
     137        LFSVRS=${BRANCH_ID}
     138        TREE=tags/${BRANCH_ID}/BOOK
     139        ;;
     140      clfs | clfs2 )
     141        LFSVRS=${BRANCH_ID}
     142        TREE=tags/${BRANCH_ID}
     143        ;;
     144    esac
     145    ;;
     146esac
     147
    149148# Set the document location...
    150149BOOK=${BOOK:=$PROGNAME-$LFSVRS}
     150
     151# blfs-tool envars
     152BLFS_TOOL=${BLFS_TOOL:-n}
     153if [[ "${BLFS_TOOL}" = "y" ]] ; then
     154  BLFS_BRANCH_ID=${BLFS_BRANCH_ID:=development}
     155  case $BLFS_BRANCH_ID in
     156    development )  BLFS_TREE=trunk/BOOK ;;
     157         *EDIT* )  echo " You forgot to set the BLFS branch or stable book version."
     158                   echo " Please rerun make and fix the configuration."
     159                   exit 2 ;;
     160       branch-* )  BLFS_TREE=branches/${BLFS_BRANCH_ID#branch-}/BOOK ;;
     161              * )  BLFS_TREE=tags/${BLFS_BRANCH_ID}/BOOK ;;
     162  esac
     163fi
    151164
    152165# Set true internal variables
Note: See TracChangeset for help on using the changeset viewer.