summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-03-06 18:09:46 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:07:47 +0200
commita4fa66245d6b905464b4e6763cb01094655f7036 (patch)
treea914b1229fceedd6069178d02077385c545cb85f /tests
parent373d86dd9835e7cf119f4ccf2833b6eaf8d410f9 (diff)
downloadexternal_gettext-a4fa66245d6b905464b4e6763cb01094655f7036.zip
external_gettext-a4fa66245d6b905464b4e6763cb01094655f7036.tar.gz
external_gettext-a4fa66245d6b905464b4e6763cb01094655f7036.tar.bz2
Fix version check.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog1
-rwxr-xr-xtests/lang-gawk2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index a117c18..a9b91b2 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,6 @@
2002-03-07 Bruno Haible <bruno@clisp.org>
+ * 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 <bruno@clisp.org>
diff --git a/tests/lang-gawk b/tests/lang-gawk
index 536088c..3756db4 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