diff options
Diffstat (limited to 'meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch')
-rw-r--r-- | meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch new file mode 100644 index 0000000000..b241097571 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | test/fflush.sh: Remove hardcoded gawk path. | ||
2 | |||
3 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- | ||
6 | --- a/test/fflush.sh 2012-05-03 20:13:57.000000000 +0200 | ||
7 | +++ b/test/fflush.sh 2013-04-08 16:28:00.170796200 +0200 | ||
8 | @@ -1,16 +1,17 @@ | ||
9 | #! /bin/sh | ||
10 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' | ||
11 | +AWK=${AWK-../gawk} | ||
12 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' | ||
13 | |||
14 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat | ||
15 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat | ||
16 | |||
17 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat | ||
18 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat | ||
19 | |||
20 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
21 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
22 | |||
23 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
24 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
25 | |||
26 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
27 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
28 | |||
29 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat | ||
30 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat | ||
31 | |||
32 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat | ||
33 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat | ||