Fred Drake | 6942e57 | 1998-11-24 17:38:49 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # |
| 3 | # Script to fix general entities that got translated from the LaTeX as empty |
| 4 | # elements. Mostly pretty bogus, but works like a charm! |
Fred Drake | 3d5e2c0 | 1998-11-30 22:30:29 +0000 | [diff] [blame] | 5 | # |
| 6 | # Removes the leading XML PI that identifies the XML version, since most of |
| 7 | # the XML files are not used as top-level documents. |
Fred Drake | 6942e57 | 1998-11-24 17:38:49 +0000 | [diff] [blame] | 8 | |
| 9 | if [ "$1" ]; then |
| 10 | exec <"$1" |
| 11 | shift 1 |
| 12 | fi |
| 13 | |
| 14 | if [ "$1" ]; then |
| 15 | exec >"$1" |
| 16 | shift 1 |
| 17 | fi |
| 18 | |
Fred Drake | 6038f54 | 1999-01-14 21:44:56 +0000 | [diff] [blame] | 19 | sed ' |
Fred Drake | 87dfd3c | 1998-11-30 14:36:26 +0000 | [diff] [blame] | 20 | s|<geq/>|\≥|g |
Fred Drake | 87dfd3c | 1998-11-30 14:36:26 +0000 | [diff] [blame] | 21 | s|<leq/>|\≤|g |
Fred Drake | c166331 | 1998-12-10 04:56:00 +0000 | [diff] [blame] | 22 | s|<geq>|\≥|g |
Fred Drake | c166331 | 1998-12-10 04:56:00 +0000 | [diff] [blame] | 23 | s|<leq>|\≤|g |
Fred Drake | 6942e57 | 1998-11-24 17:38:49 +0000 | [diff] [blame] | 24 | ' || exit $? |