aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-02-04 14:00:31 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-02-04 14:00:31 +0000
commitf281f622fcac1bed2d75aa2f2bbecc13c3afdad6 (patch)
tree48fdc079ead1f10032134d686c8d063f3fb040cc
parentRewrite logic to be more friendly to missing versions #417745 by Toralf Förs... (diff)
downloadautotools-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-xam-wrapper.sh4
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}" ;;