summaryrefslogtreecommitdiff
path: root/utils/ic/mkenam
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ic/mkenam')
-rw-r--r--utils/ic/mkenam15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/ic/mkenam b/utils/ic/mkenam
new file mode 100644
index 00000000..31c06c05
--- /dev/null
+++ b/utils/ic/mkenam
@@ -0,0 +1,15 @@
+ed - ../ic/i.out.h <<'!'
+v/^ A/d
+,s/^ A/ "/
+g/ .*$/s///
+,s/,*$/",/
+1i
+char* anames[] =
+{
+.
+$a
+};
+.
+w enam.c
+Q
+!