Process only the materials/ files to create the packages and patches files.

This commit is contained in:
Manuel Canales Esparcia 2006-03-21 20:01:36 +00:00
parent a9490abe12
commit 9e1915ad32

View file

@ -577,7 +577,7 @@ build_patches_file() { # Supply a suitably formated list of patches.
xsltproc -xinclude \ xsltproc -xinclude \
-o patcheslist_.wget \ -o patcheslist_.wget \
patcheslist.xsl \ patcheslist.xsl \
$BOOK/${ARCH}-index.xml $BOOK/materials/${ARCH}-chapter.xml
;; ;;
*) return *) return
esac esac
@ -601,7 +601,7 @@ build_patches_file() { # Supply a suitably formated list of patches.
extract_commands() { # extract_commands() { #
#----------------------------# #----------------------------#
local saveIFS=$IFS local saveIFS=$IFS
# Check for libxslt instead of just letting the script hit 'xsltproc' and fail. # Check for libxslt instead of just letting the script hit 'xsltproc' and fail.
test `type -p xsltproc` || eval "echo \"This feature requires libxslt.\" test `type -p xsltproc` || eval "echo \"This feature requires libxslt.\"
exit 1" exit 1"
@ -666,7 +666,7 @@ extract_commands() { #
chmod -R +x $JHALFSDIR/${PROGNAME}-commands chmod -R +x $JHALFSDIR/${PROGNAME}-commands
# Grab the patches and package names. # Grab the patches and package names.
for i in patches packages ; do for i in patches packages ; do
rm -f $i rm -f $i
done done
# #
@ -689,16 +689,16 @@ extract_commands() { #
done done
} }
################################# #################################
# We only want a list arch specific files.. # We only want a list arch specific files..
# Unfortunately this script produces URL's which must be converted to a std format # 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" echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packageslist_.wget file"
xsltproc -xinclude \ xsltproc -xinclude \
-o packageslist_.wget \ -o packageslist_.wget \
packageslist.xsl \ 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@<!ENTITY @@' \ grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
-e 's@">@"@' \ -e 's@">@"@' \
-e '/generic/d' > packages.tmp -e '/generic/d' > packages.tmp
@ -707,7 +707,7 @@ extract_commands() { #
# Modify the 'internal field separator' to break on 'LF' only # Modify the 'internal field separator' to break on 'LF' only
IFS=$'\x0A' IFS=$'\x0A'
for f in `cat packages.tmp`; do for f in `cat packages.tmp`; do
IFS=$saveIFS # Restore the system defaults IFS=$saveIFS # Restore the system defaults
LOC_add_packages_entry \ LOC_add_packages_entry \
`echo $f | sed -e 's/-version//' \ `echo $f | sed -e 's/-version//' \
-e 's/-file.*//' \ -e 's/-file.*//' \
@ -715,14 +715,14 @@ extract_commands() { #
done done
echo " ...OK" echo " ...OK"
;; ;;
*) *)
echo -n "Creating <${PROGNAME}> specific packageslist_.wget file" echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \ grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
-e 's@">@"@' \ -e 's@">@"@' \
-e '/generic/d' >> packages -e '/generic/d' >> packages
echo " ...OK" echo " ...OK"
;; ;;
esac esac
# Download the vim-lang package if it must be installed # Download the vim-lang package if it must be installed