From: Bruno Haible Date: Wed, 12 Dec 2001 17:59:45 +0000 (+0000) Subject: Portability tweak. X-Git-Tag: v0.11~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=769bb335aaac390ca564de0589851312e42c54c0;p=thirdparty%2Fgettext.git Portability tweak. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 46a89173f..1fafdf9ff 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -7,6 +7,8 @@ * lang-java: Set the default locale by hand. Some systems, like Solaris, are not capable of setting the locale according to LC_ALL by themselves. + * lang-rst: Avoid using the 'type' builtin. It always reports success + with SunOS4 /bin/sh. 2001-12-11 Bruno Haible diff --git a/tests/lang-rst b/tests/lang-rst index be484666d..9359f6dca 100755 --- a/tests/lang-rst +++ b/tests/lang-rst @@ -65,11 +65,9 @@ ${DIFF} prog.ok prog.pot || exit 1 # - no line wrapping # - extra newline at the end -: ${RSTCONV=rstconv} -if type ${RSTCONV} >/dev/null 2>&1; then - tmpfiles="$tmpfiles prog.pot" -${RSTCONV} -o prog.pot -i prog.rst +: ${RSTCONV=rstconv} +if ${RSTCONV} -o prog.pot -i prog.rst >/dev/null 2>&1; then tmpfiles="$tmpfiles prog.ok" cat < prog.ok