diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser index 55a2212..adcf20b 100644 --- a/common/libs/func_book_parser +++ b/common/libs/func_book_parser @@ -157,60 +157,7 @@ extract_commands() { # # Make the scripts executable. chmod -R +x $JHALFSDIR/${PROGNAME}-commands - # Create the packages file. We need it for proper Makefile creation - create_package_list - # Done. Moving on... get_sources } - -#----------------------------# -create_package_list() { # -#----------------------------# - - # Create the packages file. We need it for proper Makefile creation - rm -f pkg_tarball_list - echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK" - if [ ! -z $ARCH ] ; then echo -n " $ARCH" ; fi - echo -n "... " - case ${PROGNAME} in - clfs | clfs2 | clfs3 ) - xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ - $BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1 - ;; - hlfs) - xsltproc --nonet --xinclude \ - --stringparam model $MODEL \ - --stringparam kernel $KERNEL \ - -o pkg_tarball_list packages.xsl \ - $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 - ;; - lfs) - xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ - $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 - ;; - esac - - if [[ "${BLFS_TOOL}" = "y" ]] ; then -( -cat << EOF -$LIBXML_PKG -$LIBXSLT_PKG -$TIDY_PKG -$UNZIP_PKG -$DBXML_PKG -$DBXSL_PKG -$LYNX_PKG -$SUDO_PKG -$WGET_PKG -$SVN_PKG -$GPM_PKG -EOF -) >> pkg_tarball_list - fi - - echo "done" - -} - diff --git a/common/libs/func_download_pkgs b/common/libs/func_download_pkgs index 265a593..05f98d0 100644 --- a/common/libs/func_download_pkgs +++ b/common/libs/func_download_pkgs @@ -137,7 +137,7 @@ create_urls() { # xsltproc --nonet --xinclude \ --stringparam server $SERVER \ --stringparam family clfs \ - -o $BUILDDIR/sources/urls.lst urls.xsl \ + -o $BUILDDIR/sources/urls.lst $CODE_DIR/$COMMON_DIR/urls.xsl \ $BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1 echo " ...OK" ;; @@ -146,7 +146,7 @@ create_urls() { # xsltproc --nonet --xinclude \ --stringparam server $SERVER \ --stringparam family clfs \ - -o $BUILDDIR/sources/urls.lst urls.xsl \ + -o $BUILDDIR/sources/urls.lst $CODE_DIR/$COMMON_DIR/urls.xsl \ $BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1 echo " ...OK" ;; @@ -155,7 +155,7 @@ create_urls() { # xsltproc --nonet --xinclude \ --stringparam server $SERVER \ --stringparam family clfs \ - -o $BUILDDIR/sources/urls.lst urls.xsl \ + -o $BUILDDIR/sources/urls.lst $CODE_DIR/$COMMON_DIR/urls.xsl \ $BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1 echo " ...OK" ;; @@ -166,7 +166,7 @@ create_urls() { # --stringparam family lfs \ --stringparam model $MODEL \ --stringparam kernel $KERNEL \ - -o $BUILDDIR/sources/urls.lst urls.xsl \ + -o $BUILDDIR/sources/urls.lst $CODE_DIR/$COMMON_DIR/urls.xsl \ $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 echo " ...OK" ;; @@ -175,7 +175,7 @@ create_urls() { # xsltproc --nonet --xinclude \ --stringparam server $SERVER \ --stringparam family lfs \ - -o ../sources/urls.lst urls.xsl \ + -o ../sources/urls.lst $CODE_DIR/$COMMON_DIR/urls.xsl \ $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 echo " ...OK" ;; diff --git a/common/packages.xsl b/common/packages.xsl deleted file mode 100644 index 5eab0a7..0000000 --- a/common/packages.xsl +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jhalfs b/jhalfs index 4a8c976..049edf0 100755 --- a/jhalfs +++ b/jhalfs @@ -249,10 +249,14 @@ declare -r LOG=000-masterscript.log declare -r SVN_2="svn://svn.linuxfromscratch.org" # Set true internal variables +CODE_DIR=`pwd` COMMON_DIR="common" PACKAGE_DIR=$(echo $PROGNAME | tr '[a-z]' '[A-Z]') MODULE=$PACKAGE_DIR/master.sh +# Qick fix until have the new code ready +XSL=$CODE_DIR/$PACKAGE_DIR/$XSL + [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..." source $COMMON_DIR/common-functions [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit @@ -357,16 +361,9 @@ if [[ "$REBUILD_MAKEFILE" = "n" ]] ; then >$LOGDIR/$LOG # # Copy common helper files - cp $COMMON_DIR/{makefile-functions,progress_bar.sh,packages.xsl} $JHALFSDIR/ - # - # Fix the XSL book parser - sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL} - export XSL=$JHALFSDIR/${XSL} + cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/ # - # Copy urls.xsl, if needed - [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/ - # # Create the test-log directory, if needed [[ "$TEST" != "0" ]] && [[ ! -d $TESTLOGDIR ]] && install -d -m 1777 $TESTLOGDIR #