From: Bruno Haible Date: Sat, 12 Feb 2005 19:24:20 +0000 (+0000) Subject: Avoid HP-UX sh limitations. X-Git-Tag: v0.14.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce3b6d28f0c2e054e3edb4399c0008ae09f4cbf;p=thirdparty%2Fgettext.git Avoid HP-UX sh limitations. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 6b101c517..f8522face 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-02-12 Bruno Haible + + * lang-clisp: Use only the first line of "clisp --version"'s output. + Needed to avoid /bin/sh limitations on HP-UX 10. + 2005-02-08 Bruno Haible * Makefile.am (LDADD_yes): Remove INTL_MACOSX_LIBS. diff --git a/gettext-tools/tests/lang-clisp b/gettext-tools/tests/lang-clisp index 57944daa8..d8b0460a9 100755 --- a/gettext-tools/tests/lang-clisp +++ b/gettext-tools/tests/lang-clisp @@ -86,7 +86,7 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po # can deal with floating-point numbers. (clisp --version) >/dev/null 2>/dev/null \ || { rm -fr $tmpfiles; exit 77; } -version=`clisp --version | sed -e 's/^[^0-9]*//'` +version=`clisp --version | sed -n -e 1p | sed -e 's/^[^0-9]*//'` case $version in 19* | 20*) # older than 2.25 rm -fr $tmpfiles; exit 77;;