From: Bruno Haible Date: Wed, 6 Mar 2002 18:09:46 +0000 (+0000) Subject: Fix version check. X-Git-Tag: v0.11.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4fa66245d6b905464b4e6763cb01094655f7036;p=thirdparty%2Fgettext.git Fix version check. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index a117c1892..a9b91b2e0 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,6 @@ 2002-03-07 Bruno Haible + * lang-gawk: Fix the version recognition, to work with gawk 2.xx. * lang-tcl: Skip the test if tcl exists but has no msgcat extension. 2002-03-05 Bruno Haible diff --git a/tests/lang-gawk b/tests/lang-gawk index 536088c68..3756db471 100755 --- a/tests/lang-gawk +++ b/tests/lang-gawk @@ -84,7 +84,7 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po # Test for presence of gawk version 3.1.1 or newer. (gawk --version) >/dev/null 2>/dev/null \ || { echo "SKIP: lang-awk"; rm -fr $tmpfiles; exit 77; } -case `gawk --version | sed -e 's/^[^0-9]*//'` in +case `gawk --version 2>&1 | sed -e 's/^[^0-9]*//'` in 0.* | 1.* | 2.* | 3.0* | 3.1.0*) echo "SKIP: lang-awk"; rm -fr $tmpfiles; exit 77;; esac