diff options
Diffstat (limited to 'test/zap_cpp.awk')
-rw-r--r-- | test/zap_cpp.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/zap_cpp.awk b/test/zap_cpp.awk new file mode 100644 index 00000000..99a5a1f4 --- /dev/null +++ b/test/zap_cpp.awk @@ -0,0 +1,13 @@ +# this will remove (comment out) all preprocessor traces from +# cpp produced files: +# run this awk program as follows +# awk -f zap_cpp.awk <file> +# end redirect output where you want it to +NF > 0 { + if ($1 ~ /^#/) + print "/*", $0, "*/" + else + print +} + + |