1998-11-24 17:38:49 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# Script to fix general entities that got translated from the LaTeX as empty
|
|
|
|
# elements. Mostly pretty bogus, but works like a charm!
|
|
|
|
|
|
|
|
if [ "$1" ]; then
|
|
|
|
exec <"$1"
|
|
|
|
shift 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" ]; then
|
|
|
|
exec >"$1"
|
|
|
|
shift 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed '
|
|
|
|
s|<ABC/>|\&ABC;|g
|
|
|
|
s|<ASCII/>|\&ASCII;|g
|
|
|
|
s|<C/>|\&C;|g
|
|
|
|
s|<Cpp/>|\&Cpp;|g
|
|
|
|
s|<EOF/>|\&EOF;|g
|
|
|
|
s|<NULL/>|\&NULL;|g
|
|
|
|
s|<POSIX/>|\&POSIX;|g
|
|
|
|
s|<UNIX/>|\&UNIX;|g
|
1998-11-25 19:28:02 +00:00
|
|
|
s|<e/>|\\|g
|
|
|
|
s|<ldots/>|\&hellip|g
|
|
|
|
s|---|\—|g
|
1998-11-24 17:38:49 +00:00
|
|
|
' || exit $?
|