diff options
Diffstat (limited to 'gettext-tools/tests/lang-c++')
-rwxr-xr-x | gettext-tools/tests/lang-c++ | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gettext-tools/tests/lang-c++ b/gettext-tools/tests/lang-c++ index 65a8a28..105e70e 100755 --- a/gettext-tools/tests/lang-c++ +++ b/gettext-tools/tests/lang-c++ @@ -8,11 +8,11 @@ # Test whether a C++ compiler is found and libasprintf is built. test "${CXX}" != "no" || { echo "Skipping test: no C++ compiler found" - exit 77 + Exit 77 } test "${TESTLIBASPRINTF}" = yes || { echo "Skipping test: configured with --disable-libasprintf" - exit 77 + Exit 77 } cat <<\EOF > prog.cc @@ -62,7 +62,7 @@ EOF # is found in the build directory, regardless of -I options present in # ${CXXFLAGS} or ${CPPFLAGS}. ${CXX} -I../.. -I../../../gettext-runtime/libasprintf -I"$abs_top_srcdir"/gnulib-lib -I../../intl ${CXXFLAGS} ${CPPFLAGS} -c prog.cc \ - || exit 1 + || Exit 1 # Remove the -Wl,--disable-auto-import option here that is added by # woe32-dll.m4. Cygwin 1.7.2 does not support it in C++ mode: It gives # a link error about 'std::cout'. @@ -71,11 +71,11 @@ ${CONFIG_SHELL} "$top_builddir"/libtool --quiet --tag=CXX --mode=link \ ${CXX} ${CXXFLAGS} `echo "X ${LDFLAGS} " | sed -e 's/^X//' -e 's/ -Wl,--disable-auto-import / /'` -o prog prog.${OBJEXT} \ ../../../gettext-runtime/libasprintf/libasprintf.la \ ../../gnulib-lib/libgettextlib.la ${LTLIBINTL} \ - || exit 1 + || Exit 1 : ${XGETTEXT=xgettext} -${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.cc || exit 1 -LC_ALL=C tr -d '\r' < prog.tmp > prog.pot || exit 1 +${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.cc || Exit 1 +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot || Exit 1 cat <<EOF > prog.ok msgid "'Your command, please?', asked the waiter." @@ -93,7 +93,7 @@ msgstr "" EOF : ${DIFF=diff} -${DIFF} prog.ok prog.pot || exit 1 +${DIFF} prog.ok prog.pot || Exit 1 cat <<\EOF > fr.po msgid "" @@ -118,11 +118,11 @@ msgstr "%2$s remplace %1$s." EOF : ${MSGMERGE=msgmerge} -${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot || exit 1 -LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new || exit 1 +${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot || Exit 1 +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new || Exit 1 : ${DIFF=diff} -${DIFF} fr.po fr.po.new || exit 1 +${DIFF} fr.po fr.po.new || Exit 1 test -d fr || mkdir fr test -d fr/LC_MESSAGES || mkdir fr/LC_MESSAGES @@ -148,18 +148,18 @@ if test $LOCALE_FR != none; then prepare_locale_ fr $LOCALE_FR LANGUAGE= ./prog $LOCALE_FR 2 > prog.out case $? in - 0) ${DIFF} prog.ok prog.out || exit 1;; + 0) ${DIFF} prog.ok prog.out || Exit 1;; 77) LOCALE_FR=none;; - *) exit 1;; + *) Exit 1;; esac fi if test $LOCALE_FR_UTF8 != none; then prepare_locale_ fr $LOCALE_FR_UTF8 LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.out case $? in - 0) ${DIFF} prog.oku prog.out || exit 1;; + 0) ${DIFF} prog.oku prog.out || Exit 1;; 77) LOCALE_FR_UTF8=none;; - *) exit 1;; + *) Exit 1;; esac fi if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then @@ -168,7 +168,7 @@ if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then else echo "Skipping test: no french locale is supported" fi - exit 77 + Exit 77 fi -exit 0 +Exit 0 |