use an ed script instead of an ex script; more portable

This commit is contained in:
ceriel 1989-02-07 17:54:33 +00:00
parent a13ea6d098
commit 6fec436051

View file

@ -1,17 +1,16 @@
cp Lpars.h tokentab.h
ex tokentab.h 2>&1 > /dev/null <<+
ed - Lpars.h <<'+'
1d
1,\$s/# define //
1,\$s/ ...$//
1,\$s/^/ "/
1,\$-1s/\$/",/
\$s/\$/"/
1,$s/# define //
1,$s/ ...$//
1,$s/^/ "/
1,$-1s/$/",/
$s/$/"/
0a
char *tokentab[] = {
.
\$a
$a
};
.
w
w tokentab.h
q
+