diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-02-04 14:00:31 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-02-04 14:00:31 +0000 |
commit | f281f622fcac1bed2d75aa2f2bbecc13c3afdad6 (patch) | |
tree | 48fdc079ead1f10032134d686c8d063f3fb040cc | |
parent | Rewrite logic to be more friendly to missing versions #417745 by Toralf Förs... (diff) | |
download | autotools-wrappers-f281f622fcac1bed2d75aa2f2bbecc13c3afdad6.tar.gz autotools-wrappers-f281f622fcac1bed2d75aa2f2bbecc13c3afdad6.tar.bz2 autotools-wrappers-f281f622fcac1bed2d75aa2f2bbecc13c3afdad6.zip |
Call gawk as before since GNU awk is required and breaks with e.g. BSD awk. Bug #455436
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
-rwxr-xr-x | am-wrapper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/am-wrapper.sh b/am-wrapper.sh index 0e2311a..1602316 100755 --- a/am-wrapper.sh +++ b/am-wrapper.sh @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-8.sh,v 1.1 2013/01/02 07:40:04 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-8.sh,v 1.2 2013/02/04 14:00:23 aballier Exp $ # Executes the correct automake version. # @@ -128,7 +128,7 @@ fi do_awk() { local file=$1 ; shift local arg=$1 ; shift - local v=$(awk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}") + local v=$(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}") case " ${auto_vers} " in *" ${v} "*) ;; *) auto_vers="${auto_vers:+${auto_vers} }${v}" ;; |