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