Commit fcf7c4f9 authored by John Ellson's avatar John Ellson

fix stringize.awk to work with gawk-4.0.0 and gawk-3.1.8 - fix suggested by arnold@skeeve.com

parent 2f693413
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
BEGIN { s = ARGV[1]; gsub (".*/", "", s); gsub("\\.","_",s); printf("const char *%s[] = {\n",s); } BEGIN { s = ARGV[1]; gsub (".*/", "", s); gsub("\\.","_",s); printf("const char *%s[] = {\n",s); }
/^#/ { print $0; next; } /^#/ { print $0; next; }
{ gsub("\\\\","\\\\",$0); printf("\"%s\",\n",$0); } { gsub("\\\\","&&",$0); printf("\"%s\",\n",$0); }
END { printf("(char*)0 };\n"); } END { printf("(char*)0 };\n"); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment