Changeset d68eb1b for common/libs/func_book_parser
- Timestamp:
- 01/12/2014 09:40:20 PM (10 years ago)
- Branches:
- 2.4, ablfs-more, legacy, new_features, trunk
- Children:
- b97ed5b
- Parents:
- 7735c7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_book_parser
r7735c7a rd68eb1b 17 17 lfs) svn_root="LFS" ;; 18 18 hlfs) svn_root="HLFS" ;; 19 clfs*) svn_root="cross-lfs";;19 clfs*) ;; 20 20 *) echo "BOOK not defined in function <get_book>" 21 21 exit 1 ;; … … 57 57 #----------------------------# 58 58 59 # Check for libxslt instead of just letting the script hit 'xsltproc' and fail.60 test `type -p xsltproc` || eval "echo \"This feature requires libxslt.\"61 exit 1"62 63 59 cd $JHALFSDIR 64 60 case $PROGNAME in … … 69 65 esac 70 66 71 # Start clean 72 if [ -d ${PROGNAME}-commands ]; then 73 rm -rf ${PROGNAME}-commands 74 mkdir -v ${PROGNAME}-commands 75 fi 67 # Clean 68 rm -rf ${PROGNAME}-commands 69 70 # Extract the commands 76 71 echo -n "Extracting commands for" 77 78 # Dump the commands in shell script form from the HLFS book.79 72 case ${PROGNAME} in 80 73 clfs) … … 149 142 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 150 143 ;; 151 *) echo -n " ${L_arrow}${ BOLD}${PROGNAME}${R_arrow} book invalid, terminate build... "144 *) echo -n " ${L_arrow}${PROGNAME}${R_arrow} book invalid, terminate build... " 152 145 exit 1 ;; 153 146 esac … … 160 153 # Create the packages file. We need it for proper Makefile creation 161 154 create_package_list 155 create_chroot_scripts 162 156 163 157 # Done. Moving on... … … 196 190 esac 197 191 198 if [[ "${BLFS_TOOL}" = "y" ]] ; then199 (200 cat << EOF201 $LIBXML_PKG202 $LIBXSLT_PKG203 $TIDY_PKG204 $UNZIP_PKG205 $DBXML_PKG206 $DBXSL_PKG207 $LYNX_PKG208 $SUDO_PKG209 $WGET_PKG210 $SQLITE_PKG211 $APR_PKG212 $APR_U_PKG213 $SVN_PKG214 $GPM_PKG215 EOF216 ) >> pkg_tarball_list217 fi218 219 192 echo "done" 220 193 221 194 } 222 195 196 #----------------------------# 197 create_chroot_scripts() { # 198 #----------------------------# 199 200 rm -rf chroot_scripts 201 echo -n "Creating chroot commands scripts from $BOOK" 202 if [ ! -z $ARCH ] ; then echo -n " $ARCH" ; fi 203 echo -n "... " 204 case ${PROGNAME} in 205 clfs*) 206 xsltproc --nonet --xinclude \ 207 -o chroot-scripts/ chroot.xsl \ 208 $BOOK/BOOK/${ARCH}-index.xml >> $LOGDIR/$LOG 2>&1 209 ;; 210 hlfs) 211 xsltproc --nonet --xinclude \ 212 -o chroot-scripts/ chroot.xsl \ 213 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1 214 ;; 215 lfs) 216 xsltproc --nonet --xinclude \ 217 -o chroot-scripts/ chroot.xsl \ 218 $BOOK/chapter06/chapter06.xml >> $LOGDIR/$LOG 2>&1 219 ;; 220 *) 221 esac 222 echo "done" 223 224 }
Note:
See TracChangeset
for help on using the changeset viewer.