summaryrefslogtreecommitdiffstats
path: root/test/parser/extract-config.awk
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-05-29 13:42:16 -0700
committerGeoff Levand <geoff@infradead.org>2013-05-29 13:42:16 -0700
commitf7d58f3945a5b1325e451d3d98018ebeb7d14741 (patch)
treeb09a4add63ca9d4e199e836f68f38b3bc2196201 /test/parser/extract-config.awk
parent1435814a67d3c1a0199f84b91246b37eb8fa8b99 (diff)
downloadtalos-petitboot-f7d58f3945a5b1325e451d3d98018ebeb7d14741.tar.gz
talos-petitboot-f7d58f3945a5b1325e451d3d98018ebeb7d14741.zip
test/parser: Remove gawk specifics
Remove the GNU awk specifics to allow the use of a standard awk program. Fixes build errors on older distros. Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'test/parser/extract-config.awk')
-rw-r--r--test/parser/extract-config.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser/extract-config.awk b/test/parser/extract-config.awk
index e7a5b33..9c85853 100644
--- a/test/parser/extract-config.awk
+++ b/test/parser/extract-config.awk
@@ -2,7 +2,7 @@ BEGIN {
config=0
}
-/^#if\s*0\s*\/\*\s*PARSER_EMBEDDED_CONFIG/ {
+/^#if[ \t]*0[ \t]*\/\*[ \t]*PARSER_EMBEDDED_CONFIG/ {
config=1
print "#include <stdlib.h>"
print "const char __embedded_config[] = "
OpenPOWER on IntegriCloud