Changeset a6655ff


Ignore:
Timestamp:
07/16/2006 10:06:03 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
7fdd8f6
Parents:
7785f91
Message:

Avoiding hardcoded supported books versions.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CLFS/config

    r7785f91 ra6655ff  
    6969#--- Book version
    7070LFSVRS=development
     71TREE=trunk/BOOK
    7172
    7273#--- Name of the makefile
  • HLFS/config

    r7785f91 ra6655ff  
    3939#--- Book version
    4040LFSVRS=development
     41TREE=trunk/BOOK
    4142
    4243#--- Name of the makefile
  • LFS/config

    r7785f91 ra6655ff  
    3333#--- Book version
    3434LFSVRS=development
     35TREE=trunk/BOOK
    3536
    3637#--- Name of the makefile
  • common/common-functions

    r7785f91 ra6655ff  
    5353${BOLD}  -B, --book VER${OFF}
    5454        use VER version of the book as the system to build.
    55         Supported versions are: dev*, trunk, SVN
    56         These are aliases for the Development version of {C,H}LFS
     55        Supported VER values are:
     56          dev*, trunk, SVN = aliases for the Development version of {C,H}LFS
     57          branch-NAME = a branch of name NAME
     58          VERSION = the version of a stable released book
     59        To know what branches and stable books works with this version of jhalfs
     60        please see http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
    5761
    5862${BOLD}  -D  --directory DIR${OFF}
     
    654658         test -f $JHALFSDIR/pkg_tarball_list ; then
    655659        # Set the canonical book version
    656         echo -ne "done\n" 
     660        echo -ne "done\n"
    657661        cd $JHALFSDIR
    658662        case $PROGNAME in
     
    668672      fi
    669673    else
    670       case $LFSVRS in
    671         development)
    672            svn co $SVN/${svn_root}/trunk/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
    673       esac
     674      svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1
    674675      echo -ne "done\n"
    675676      extract_commands
     
    680681    extract_commands
    681682  fi
    682   echo -ne " Document version ${L_arrow}${BOLD}${VERSION}${R_arrow}\n" 
     683  echo -ne " Document version ${L_arrow}${BOLD}${VERSION}${R_arrow}\n"
    683684}
    684685
     
    693694  cd $JHALFSDIR
    694695  case $PROGNAME in
    695     clfs) 
     696    clfs)
    696697      VERSION=$(xmllint --noent $BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //'  -e 's/<\/.*//') ;;
    697698    *)
  • common/func_validate_configs.sh

    r7785f91 ra6655ff  
    217217                     validate_dir -z -d
    218218                   else
    219                      validate_against_str "x${PROGNAME}-developmentx"
     219                     validate_against_str "x${PROGNAME}-${LFSVRS}x"
    220220                   fi ;;
    221221
  • master.sh

    r7785f91 ra6655ff  
    106106        dev* | SVN | trunk )
    107107          LFSVRS=development
    108           ;;
    109         *) if [[ "$PROGNAME" = "lfs" ]]; then
    110              case $1 in
    111                6.1.1 )
    112                  echo "For stable 6.1.1 book, please use jhalfs-0.2."
    113                  exit 0
    114                 ;;
    115                * )
    116                  echo "$1 is an unsupported version at this time."
    117                  exit 0
    118                 ;;
    119              esac
    120            else
    121              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."
    122              exit 0
    123            fi
     108          TREE=trunk/BOOK
     109          ;;
     110        branch-* )
     111          LFSVRS=$1
     112          TREE=branches/${1#branch-}/BOOK
     113          ;;
     114        * )
     115          case $PROGNAME in
     116            lfs | hlfs )
     117              LFSVRS=$1
     118              TREE=tags/$1/BOOK
     119              ;;
     120            clfs )
     121              LFSVRS=$1
     122              TREE=tags/$1
     123              ;;
     124          esac
    124125          ;;
    125126      esac
Note: See TracChangeset for help on using the changeset viewer.