Changeset 7bd0866 for common/libs/func_book_parser
- Timestamp:
- 06/19/2016 02:41:18 PM (8 years ago)
- Branches:
- new_features
- Children:
- 04952c63
- Parents:
- 99ba6d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_book_parser
r99ba6d8 r7bd0866 9 9 10 10 if [ -z $WORKING_COPY ] ; then 11 11 # Check for Subversion instead of just letting the script hit 'svn' and fail. 12 12 test `type -p svn` || eval "echo \"This feature requires Subversion.\" 13 13 exit 1" … … 24 24 # repo. If we've already extracted the commands, move on to getting the 25 25 # sources. 26 if [ $PROGNAME == "lfs" ] || [ $PROGNAME == "hlfs" ] && [ ! -d ${PROGNAME}-${LFSVRS}/.svn ]; then 26 if [ $PROGNAME == "lfs" ] || [ $PROGNAME == "hlfs" ] && 27 [ ! -d ${PROGNAME}-${LFSVRS}/.svn ]; then 27 28 svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 28 elif [ $PROGNAME == "clfs" ] || [ $PROGNAME == "clfs2" ] || [ $PROGNAME == "clfs3" ] && [ ! -d ${PROGNAME}-${LFSVRS}/.git ]; then 29 elif [ $PROGNAME == "clfs" ] || [ $PROGNAME == "clfs2" ] || 30 [ $PROGNAME == "clfs3" ] && [ ! -d ${PROGNAME}-${LFSVRS}/.git ]; then 29 31 echo $TREE 30 32 git clone $GIT ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 … … 61 63 clfs*) 62 64 VERSION=$(xmllint --noent $BOOK/BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;; 65 lfs) 66 if [ "$INITSYS" = "sysv" ] ; then 67 VERSION=$(grep 'ENTITY version ' $BOOK/general.ent| cut -d\" -f2) 68 else 69 VERSION=$(grep 'ENTITY versiond' $BOOK/general.ent| cut -d\" -f2) 70 fi 71 ;; 63 72 *) 64 73 VERSION=$(xmllint --noent $BOOK/prologue/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;; … … 73 82 clfs) 74 83 echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... " 75 xsltproc --nonet \76 --xinclude \77 --stringparam method $METHOD \78 --stringparam testsuite $TEST \84 xsltproc --nonet \ 85 --xinclude \ 86 --stringparam method $METHOD \ 87 --stringparam testsuite $TEST \ 79 88 --stringparam bomb-testsuite $BOMB_TEST \ 80 --stringparam vim-lang $VIMLANG \ 81 --stringparam timezone $TIMEZONE \ 82 --stringparam page $PAGE \ 83 --stringparam lang $LANG \ 84 --stringparam sparc $SPARC64_PROC \ 85 --stringparam x86 $TARGET \ 86 --stringparam mips $TARGET \ 87 -o ./${PROGNAME}-commands/ $XSL $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 89 --stringparam vim-lang $VIMLANG \ 90 --stringparam timezone $TIMEZONE \ 91 --stringparam page $PAGE \ 92 --stringparam lang $LANG \ 93 --stringparam sparc $SPARC64_PROC \ 94 --stringparam x86 $TARGET \ 95 --stringparam mips $TARGET \ 96 -o ./${PROGNAME}-commands/ \ 97 $XSL \ 98 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 88 99 ;; 89 100 90 101 clfs2) 91 102 echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... " 92 xsltproc --nonet \93 --xinclude \94 --stringparam vim-lang $VIMLANG \103 xsltproc --nonet \ 104 --xinclude \ 105 --stringparam vim-lang $VIMLANG \ 95 106 --stringparam timezone $TIMEZONE \ 96 --stringparam page $PAGE \ 97 --stringparam lang $LANG \ 98 -o ./${PROGNAME}-commands/ $XSL $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 107 --stringparam page $PAGE \ 108 --stringparam lang $LANG \ 109 --output ./${PROGNAME}-commands/ \ 110 $XSL \ 111 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 99 112 ;; 100 113 101 114 clfs3) 102 115 echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... " 103 xsltproc --nonet \104 --xinclude \105 --stringparam endian x$ENDIAN \116 xsltproc --nonet \ 117 --xinclude \ 118 --stringparam endian x$ENDIAN \ 106 119 --stringparam timezone $TIMEZONE \ 107 --stringparam page $PAGE \ 108 --stringparam lang $LANG \ 109 -o ./${PROGNAME}-commands/ $XSL $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 120 --stringparam page $PAGE \ 121 --stringparam lang $LANG \ 122 --output ./${PROGNAME}-commands/ \ 123 $XSL \ 124 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 110 125 ;; 111 126 112 127 hlfs) 113 128 echo -n " ${L_arrow}${BOLD}$MODEL + $KERNEL${R_arrow} HLFS flavour... " 114 xsltproc --nonet \ 115 --xinclude \ 116 --stringparam model $MODEL \ 117 --stringparam kernel $KERNEL \ 118 --stringparam testsuite $TEST \ 119 --stringparam bomb-testsuite $BOMB_TEST \ 120 --stringparam features x$SSP$ASLR$PAX$HARDENED_TMP$WARNINGS$MISC$BLOWFISH \ 121 --stringparam timezone $TIMEZONE \ 122 --stringparam page $PAGE \ 123 --stringparam lang $LANG \ 124 --stringparam grsecurity_host $GRSECURITY_HOST \ 125 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 129 xsltproc --nonet \ 130 --xinclude \ 131 --stringparam model $MODEL \ 132 --stringparam kernel $KERNEL \ 133 --stringparam testsuite $TEST \ 134 --stringparam bomb-testsuite $BOMB_TEST \ 135 --stringparam features \ 136 x$SSP$ASLR$PAX$HARDENED_TMP$WARNINGS$MISC$BLOWFISH \ 137 --stringparam timezone $TIMEZONE \ 138 --stringparam page $PAGE \ 139 --stringparam lang $LANG \ 140 --stringparam grsecurity_host $GRSECURITY_HOST \ 141 --output ./${PROGNAME}-commands/ \ 142 $XSL \ 143 $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 126 144 ;; 127 145 lfs) … … 132 150 fi 133 151 popd > /dev/null 152 153 xsltproc --nonet \ 154 --xinclude \ 155 --output /tmp/lfs-full.xml \ 156 --stringparam profile.revision $INITSYS \ 157 $BOOK/stylesheets/lfs-xsl/profile.xsl \ 158 $BOOK/index.xml 159 134 160 xsltproc --nonet \ 135 --xinclude \136 161 --stringparam testsuite $TEST \ 137 162 --stringparam bomb-testsuite $BOMB_TEST \ … … 151 176 --stringparam nameserver1 $DNS1 \ 152 177 --stringparam nameserver2 $DNS2 \ 153 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 178 --output ./${PROGNAME}-commands/ \ 179 $XSL \ 180 /tmp/lfs-full.xml >>$LOGDIR/$LOG 2>&1 181 182 rm /tmp/lfs-full.xml 154 183 ;; 155 184 *) echo -n " ${L_arrow}${PROGNAME}${R_arrow} book invalid, terminate build... " … … 182 211 case ${PROGNAME} in 183 212 clfs*) 184 xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ 213 xsltproc --nonet --xinclude \ 214 -o pkg_tarball_list \ 215 packages.xsl \ 185 216 $BOOK/BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1 186 217 ;; 187 218 hlfs) 188 xsltproc --nonet --xinclude \189 --stringparam model $MODEL \219 xsltproc --nonet --xinclude \ 220 --stringparam model $MODEL \ 190 221 --stringparam kernel $KERNEL \ 191 -o pkg_tarball_list packages.xsl \ 222 --output pkg_tarball_list \ 223 packages.xsl \ 192 224 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 193 225 ;; 194 226 lfs) 195 xsltproc --nonet --xinclude \ 196 --stringparam pkgmngt $PKGMNGT \ 197 -o pkg_tarball_list packages.xsl \ 227 xsltproc --nonet --xinclude \ 228 --stringparam pkgmngt $PKGMNGT \ 229 --stringparam revision $INITSYS \ 230 --output pkg_tarball_list \ 231 packages.xsl \ 198 232 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 199 233 ;;
Note:
See TracChangeset
for help on using the changeset viewer.