##### # # Parse the XML documents to create a 'package' book # # $Id: ##### #----------------------------# generate_TARGET_xml() { # #----------------------------# : < Preface Installing $TARGET in Dependencies Build Order EOF } > $TARGET-index.xml #--------------------- # Dump $TARGET-index.xml.tmp in reverse order. tac $TARGET-index.xml.tmp >> $TARGET-index.xml rm $TARGET-index.xml.tmp #--------------------- # Footer of $TARGET-index.xml { cat << EOF EOF } >> $TARGET-index.xml echo "done" } #-------------------------# generate_target_book() { # #-------------------------# : < xsltproc.log 2>&1 mkdir HTML/{stylesheets,images} cp ../$BLFS_XML/stylesheets/*.css HTML/stylesheets cp ../$BLFS_XML/images/*.png HTML/images cd HTML sed -i -e "s@../stylesheets@stylesheets@g" *.html sed -i -e "s@../images@images@g" *.html for filename in `find . -name "*.html"` ; do tidy -config ../../$BLFS_XML/tidy.conf $filename || true sh ../../$BLFS_XML/obfuscate.sh $filename sed -i -e "s@text/html@application/xhtml+xml@g" $filename done echo "done" } #-------------------------# create_build_scripts() { # #-------------------------# : <