Hackish fix. Only grab entities from lines that start with <!ENTITY.

Hopefully this means that this line isn't commented out.
Better fix forthcoming.
This commit is contained in:
Jeremy Huntwork 2006-01-10 03:58:23 +00:00
parent cf9cac8e76
commit 7b20cc5ae2

4
jhalfs
View file

@ -230,11 +230,11 @@ extract_commands() {
fi fi
echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@'` >> packages echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@'` >> packages
echo `grep "glibc" packages | sed 's@glibc@glibc-libidn@'` >> packages echo `grep "glibc" packages | sed 's@glibc@glibc-libidn@'` >> packages
grep "ENTITY" $BOOK/patches.ent | sed -e 's/.* "//' -e 's/">//' >> patches grep "^<\!ENTITY" $BOOK/patches.ent | sed -e 's/.* "//' -e 's/">//' >> patches
# Needed for Groff patchlevel patch # Needed for Groff patchlevel patch
GROFFLEVEL=`grep "groff-patchlevel" $BOOK/general.ent | sed -e 's/groff-patchlevel //' -e 's/"//g' \ GROFFLEVEL=`grep "groff-patchlevel" $BOOK/general.ent | sed -e 's/groff-patchlevel //' -e 's/"//g' \
-e 's@<!ENTITY @@' -e 's|>||' ` -e 's@<!ENTITY @@' -e 's|>||'`
sed -i 's|&groff-patchlevel;|'$GROFFLEVEL'|' patches sed -i 's|&groff-patchlevel;|'$GROFFLEVEL'|' patches
# Done. Moving on... # Done. Moving on...