From: Fred Drake Date: Mon, 30 Nov 1998 22:30:29 +0000 (+0000) Subject: Move nasty cruft from make.rules' $(CUTCRUFT) here, mostly to clean up X-Git-Tag: v1.5.2b1~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d5e2c032d2df174b77d53dc26ef22ae3108f084;p=python Move nasty cruft from make.rules' $(CUTCRUFT) here, mostly to clean up make.rules. --- diff --git a/Doc/tools/sgmlconv/fixgenents.sh b/Doc/tools/sgmlconv/fixgenents.sh index 117b41516e..0503d7bfee 100755 --- a/Doc/tools/sgmlconv/fixgenents.sh +++ b/Doc/tools/sgmlconv/fixgenents.sh @@ -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 '^$$' | sed ' s||\&ABC;|g s||\&ASCII;|g s||\&C;|g