diff --git a/BLFS/TODO b/BLFS/TODO index d49ea2a..9f1a956 100644 --- a/BLFS/TODO +++ b/BLFS/TODO @@ -19,8 +19,13 @@ What remains to do: c. Run the packages.sh script. 2. - To develop the XSL code needed to create the build scripts. + Work in progress. -3. - To develop the code to create the Makefile +3. - To develop the code to create the Makefile. + Should be a separate script to be run manually after the user has + review and edited the target build scripts. + Must make the build scripts executables and set the SRC_ARCHIVE and + FTP_SERVER envars. 4. - To find a way to track already installed packages by previous runs, to can skip them when creating the book/scripts/Makefile for a new target. diff --git a/BLFS/libs/func_parser b/BLFS/libs/func_parser index 8c61f7c..f1b5b08 100644 --- a/BLFS/libs/func_parser +++ b/BLFS/libs/func_parser @@ -88,6 +88,8 @@ generate_target_book() { # input vars: nothing externals: vars: TARGET BLFS_XML + MAIL_SERVER + X11 modifies: nothing returns: nothing output: file: NUMEROUS FILES @@ -116,6 +118,7 @@ inline_doc sh ../../$BLFS_XML/obfuscate.sh $filename sed -i -e "s@text/html@application/xhtml+xml@g" $filename done + cd .. echo "done" } @@ -124,15 +127,22 @@ inline_doc create_build_scripts() { # #-------------------------# : <> xsltproc.log + + echo -en "\tGenerating the build scripts ..." + xsltproc --xinclude --nonet \ + -o ./scripts/ ../libs/scripts.xsl \ + $TARGET-index.xml >> xsltproc.log 2>&1 + echo "done" } diff --git a/BLFS/libs/scripts.xsl b/BLFS/libs/scripts.xsl new file mode 100644 index 0000000..4cd7e14 --- /dev/null +++ b/BLFS/libs/scripts.xsl @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 00 + + + + 0 + + + + + + + + + + #!/bin/sh set -e + + + + + + cd ~/sources/ + + rm -rf $UNPACKDIR + + exit + + + + + + + + + + + + mkdir -p ~/sources/ + + cd ~/sources/ + + + + + + + + + + tar -xvf + + > /tmp/unpacked + UNPACKDIR=`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'` + cd $UNPACKDIR + + + + + + + + + + + + + + + + + + + + cp $SRC_ARCHIVE/ + + / + + || \ + cp $SRC_ARCHIVE/ + + || \ + + wget $FTP_SERVER/BLFS/conglomeration/ + + / + + || \ + + wget + + || \ + + + + wget + + + + + echo " + + + + " | md5sum -c - + + + + wget + + + + + + + + + + + + + + + + sudo + + + + + + + + + + # + + make -k + + || true + + + + + + + + + + **EDITME + + EDITME** + + +