From 059d4a8811f188f3094e3ba550e4a960d35de36a Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Fri, 24 Aug 2007 18:10:11 +0200 Subject: [PATCH 1/3] - Fixed substitution in Awk script: we were (erroneusly) stripping 'g' characters. - Updated template and C header which results after running the script. --- template.awk | 2 +- template.h | 25 ++++++++++++------------- template.html | 5 ++--- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/template.awk b/template.awk index 9c8c48b..74ccc51 100755 --- a/template.awk +++ b/template.awk @@ -28,7 +28,7 @@ BEGIN { { if (!varname) next; # Order matters - gsub(/[\t\v\n\r\f\g]+/, ""); + gsub(/[\t\v\n\r\f]+/, ""); gsub(/\\/, "\\\\"); gsub(/"/, "\\\""); print "\"" $0 "\"" diff --git a/template.h b/template.h index f620f6c..bedd597 100644 --- a/template.h +++ b/template.h @@ -1,24 +1,23 @@ /* Automagically generated, do not edit! */ static const u_char t01_head1[] = "" -"" -"" +"" +"" "" "" "