mirror of https://github.com/python/cpython
26 lines
420 B
Bash
Executable File
26 lines
420 B
Bash
Executable File
#! /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
|
|
' || exit $?
|