diff options
author | Geoff Levand <geoff@infradead.org> | 2013-05-29 13:42:16 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-05-29 13:42:16 -0700 |
commit | f7d58f3945a5b1325e451d3d98018ebeb7d14741 (patch) | |
tree | b09a4add63ca9d4e199e836f68f38b3bc2196201 /test | |
parent | 1435814a67d3c1a0199f84b91246b37eb8fa8b99 (diff) | |
download | talos-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')
-rw-r--r-- | test/parser/Makefile.am | 2 | ||||
-rw-r--r-- | test/parser/extract-config.awk | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/parser/Makefile.am b/test/parser/Makefile.am index af4fbd6..84ff2e1 100644 --- a/test/parser/Makefile.am +++ b/test/parser/Makefile.am @@ -66,7 +66,7 @@ $(check_PROGRAMS): LDADD += $@.embedded-config.o extract_config = $(srcdir)/extract-config.awk %.embedded-config.c: %.c $(extract_config) - gawk --file=$(extract_config) $^ > $@ + $(AWK) -f $(extract_config) $< > $@ EXTRA_DIST = $(check_DATA) $(extract_config) 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[] = " |