From 9e1915ad328fc47da36d09f97c641655f48e6c92 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Tue, 21 Mar 2006 20:01:36 +0000 Subject: [PATCH] Process only the materials/ files to create the packages and patches files. --- common/common-functions | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/common-functions b/common/common-functions index 388f562..4e31b7f 100644 --- a/common/common-functions +++ b/common/common-functions @@ -577,7 +577,7 @@ build_patches_file() { # Supply a suitably formated list of patches. xsltproc -xinclude \ -o patcheslist_.wget \ patcheslist.xsl \ - $BOOK/${ARCH}-index.xml + $BOOK/materials/${ARCH}-chapter.xml ;; *) return esac @@ -601,7 +601,7 @@ build_patches_file() { # Supply a suitably formated list of patches. extract_commands() { # #----------------------------# local saveIFS=$IFS - + # Check for libxslt instead of just letting the script hit 'xsltproc' and fail. test `type -p xsltproc` || eval "echo \"This feature requires libxslt.\" exit 1" @@ -666,7 +666,7 @@ extract_commands() { # chmod -R +x $JHALFSDIR/${PROGNAME}-commands # Grab the patches and package names. - for i in patches packages ; do + for i in patches packages ; do rm -f $i done # @@ -689,16 +689,16 @@ extract_commands() { # done } ################################# - + # We only want a list arch specific files.. # Unfortunately this script produces URL's which must be converted to a std format echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packageslist_.wget file" xsltproc -xinclude \ -o packageslist_.wget \ packageslist.xsl \ - $BOOK/${ARCH}-index.xml + $BOOK/materials/${ARCH}-chapter.xml - # This has the correct format but contains packages from every book + # This has the correct format but contains packages from every book grep "\-version " $BOOK/packages.ent | sed -e 's@@"@' \ -e '/generic/d' > packages.tmp @@ -707,7 +707,7 @@ extract_commands() { # # Modify the 'internal field separator' to break on 'LF' only IFS=$'\x0A' for f in `cat packages.tmp`; do - IFS=$saveIFS # Restore the system defaults + IFS=$saveIFS # Restore the system defaults LOC_add_packages_entry \ `echo $f | sed -e 's/-version//' \ -e 's/-file.*//' \ @@ -715,14 +715,14 @@ extract_commands() { # done echo " ...OK" ;; - + *) echo -n "Creating <${PROGNAME}> specific packageslist_.wget file" grep "\-version" $BOOK/general.ent | sed -e 's@@"@' \ -e '/generic/d' >> packages echo " ...OK" - ;; + ;; esac # Download the vim-lang package if it must be installed