No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgunfmt-1
bloba707dd837cb60cf5540746ecefc1c9672d72b3d8
1 #! /bin/sh
3 # Test of general operation.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mu-test1.in"
9 cat <<EOF > mu-test1.in
10 msgid "eight"
11 msgstr "eighth"
13 msgid "five"
14 msgstr "fifth"
16 msgid "four"
17 msgstr "fourth"
19 msgid "one"
20 msgstr "first"
22 msgid "seven"
23 msgstr "seventh"
25 msgid "six"
26 msgstr "sixth"
28 msgid "three"
29 msgstr "third"
31 msgid "two"
32 msgstr "second"
33 EOF
35 tmpfiles="$tmpfiles mu-test1.mo"
36 : ${MSGFMT=msgfmt}
37 ${MSGFMT} mu-test1.in -o mu-test1.mo
38 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
40 tmpfiles="$tmpfiles mu-test1.out"
41 : ${MSGUNFMT=msgunfmt}
42 ${MSGUNFMT} mu-test1.mo -o mu-test1.out
43 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
45 : ${DIFF=diff}
46 ${DIFF} mu-test1.in mu-test1.out
47 result=$?
49 rm -fr $tmpfiles
51 exit $result