diff options
author | Bruno Haible <bruno@clisp.org> | 2003-06-12 12:37:46 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:39 +0200 |
commit | 0771e1276fa618b4ff3a65a7cd450f86b67a7829 (patch) | |
tree | 787049b88d16381e54d1c0906287f01b1886d36e /gettext-tools/tests/format-perl-2 | |
parent | a9cbe6856958f5743d78a54a7c0f5322b6778df3 (diff) | |
download | external_gettext-0771e1276fa618b4ff3a65a7cd450f86b67a7829.zip external_gettext-0771e1276fa618b4ff3a65a7cd450f86b67a7829.tar.gz external_gettext-0771e1276fa618b4ff3a65a7cd450f86b67a7829.tar.bz2 |
Tweaks.
Diffstat (limited to 'gettext-tools/tests/format-perl-2')
-rwxr-xr-x | gettext-tools/tests/format-perl-2 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gettext-tools/tests/format-perl-2 b/gettext-tools/tests/format-perl-2 index a8b6644..929628a 100755 --- a/gettext-tools/tests/format-perl-2 +++ b/gettext-tools/tests/format-perl-2 @@ -5,8 +5,8 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -tmpfiles="$tmpfiles f-a-2.data" -cat <<\EOF > f-a-2.data +tmpfiles="$tmpfiles f-pl-2.data" +cat <<\EOF > f-pl-2.data # Valid: %% doesn't count msgid "abc%%def" msgstr "xyz" @@ -126,21 +126,21 @@ while read comment; do read msgid_line read msgstr_line n=`expr $n + 1` - tmpfiles="$tmpfiles f-a-2-$n.po f-a-2-$n.mo" - cat <<EOF > f-a-2-$n.po + tmpfiles="$tmpfiles f-pl-2-$n.po f-pl-2-$n.mo" + cat <<EOF > f-pl-2-$n.po #, perl-format ${msgid_line} ${msgstr_line} EOF fail= if echo "$comment" | grep 'Valid:' > /dev/null; then - if ${MSGFMT} --check-format -o f-a-2-$n.mo f-a-2-$n.po; then + if ${MSGFMT} --check-format -o f-pl-2-$n.mo f-pl-2-$n.po; then : else fail=yes fi else - ${MSGFMT} --check-format -o f-a-2-$n.mo f-a-2-$n.po 2> /dev/null + ${MSGFMT} --check-format -o f-pl-2-$n.mo f-pl-2-$n.po 2> /dev/null if test $? = 1; then : else @@ -149,10 +149,10 @@ EOF fi if test -n "$fail"; then echo "Format string checking error:" 1>&2 - cat f-a-2-$n.po 1>&2 + cat f-pl-2-$n.po 1>&2 exit 1 fi -done < f-a-2.data +done < f-pl-2.data rm -fr $tmpfiles |