summaryrefslogtreecommitdiff
path: root/lib/et/et_c.awk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/et/et_c.awk')
-rw-r--r--lib/et/et_c.awk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/et/et_c.awk b/lib/et/et_c.awk
index ab0079f0..1769b79a 100644
--- a/lib/et/et_c.awk
+++ b/lib/et/et_c.awk
@@ -1,4 +1,7 @@
BEGIN {
+if ( length(outfn) == 0) {
+ outfn = outfile
+}
char_shift=64
## "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
c2n["A"]=1
@@ -119,7 +122,7 @@ c2n["_"]=63
}
}
print "/*" > outfile
- print " * " outfile ":" > outfile
+ print " * " outfn ":" > outfile
print " * This file is automatically generated; please do not edit it." > outfile
print " */" > outfile