Move nasty cruft from make.rules' $(CUTCRUFT) here, mostly to clean up

make.rules.
This commit is contained in:
Fred Drake 1998-11-30 22:30:29 +00:00
parent 50b804dc88
commit 3d5e2c032d
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
#
# Script to fix general entities that got translated from the LaTeX as empty
# elements. Mostly pretty bogus, but works like a charm!
#
# Removes the leading XML PI that identifies the XML version, since most of
# the XML files are not used as top-level documents.
if [ "$1" ]; then
exec <"$1"
@ -13,7 +16,7 @@ if [ "$1" ]; then
shift 1
fi
sed '
grep -v '^<?xml .*?>$$' | sed '
s|<ABC/>|\&ABC;|g
s|<ASCII/>|\&ASCII;|g
s|<C/>|\&C;|g