Ignore:
Timestamp:
07/23/2006 02:44:13 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
d763e91
Parents:
a708b15
Message:

Begin coding against the CLFS-2.0 book

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    ra708b15 r7432834  
    130130${BOLD}  --method BUILDMETHOD ${OFF}
    131131        Select the build method, chroot or boot
     132-EOF-
     133
     134[[ ${PROGNAME} = "clfs2" ]] &&
     135cat <<- -EOF-
     136
     137${BOLD}  -A, --arch ARCH ${OFF}
     138        Select the TARGET architecture, valid selections are:
     139           32bit builds
     140        arm
     141           64bit builds
     142
     143        64bit multi-lib
    132144-EOF-
    133145
     
    646658      hlfs) svn_root="HLFS" ;;
    647659      clfs) svn_root="cross-lfs" ;;
     660      clfs2) svn_root="cross-lfs" ;;
    648661      *) echo "BOOK not defined in function <get_book>"
    649662          exit 1 ;;
     
    661674        cd $JHALFSDIR
    662675        case $PROGNAME in
    663           clfs)
     676          clfs | clfs2)
    664677            VERSION=$(xmllint --noent $BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //'  -e 's/<\/.*//') ;;
    665678          *)
     
    672685      fi
    673686    else
    674       svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1
     687       case $PROGNAME in
     688         clfs2 ) svn co $SVN/${svn_root}/branches/clfs-2.0/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
     689              *) svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
     690       esac
    675691      echo -ne "done\n"
    676692      extract_commands
     
    694710  cd $JHALFSDIR
    695711  case $PROGNAME in
    696     clfs)
     712    clfs | clfs2 )
    697713      VERSION=$(xmllint --noent $BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //'  -e 's/<\/.*//') ;;
    698714    *)
     
    722738                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    723739      ;;
     740
     741    clfs2)
     742        echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture"
     743        xsltproc --nonet \
     744                 --xinclude \
     745                 --stringparam testsuite $TEST \
     746                 --stringparam vim-lang $VIMLANG \
     747                 --stringparam timezone $TIMEZONE \
     748                 --stringparam page $PAGE \
     749                 --stringparam lang $LANG \
     750                 --stringparam keymap $KEYMAP \
     751                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
     752      ;;
    724753    hlfs)
    725754        echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS libc implementation"
     
    770799  echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH"
    771800  case ${PROGNAME} in
    772     clfs)
     801    clfs | clfs2)
    773802        xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \
    774803                 $BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1
     
    925954        echo " ...OK"
    926955      ;;
     956    clfs2)
     957        echo -n "Creating CLFS2 <${ARCH}> specific URLs file"
     958        xsltproc --nonet --xinclude \
     959                 --stringparam server $SERVER \
     960                 -o $BUILDDIR/sources/urls.lst urls.xsl \
     961                 $BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1
     962        echo " ...OK"
     963      ;;
    927964    hlfs)
    928965        echo -n "Creating HLFS <${MODEL}> specific URLs file"
Note: See TracChangeset for help on using the changeset viewer.