No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcat-7
blob867b7381dcea0159a61070067173d1be7b5f9bd8
1 #! /bin/sh
3 # Verify 'msgcat --sort-output'
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcat-test7.in1"
9 cat <<EOF > mcat-test7.in1
10 #: clients/inst_language.ycp:119
11 msgid "two"
12 msgstr "2"
14 #: clients/inst_language.ycp:108
15 msgid ""
16 "one"
17 msgstr ""
18 "1"
19 EOF
21 tmpfiles="$tmpfiles mcat-test7.out"
22 rm -f mcat-test7.out
23 : ${MSGCAT=msgcat}
24 ${MSGCAT} --sort-output -o mcat-test7.out mcat-test7.in1
25 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
27 tmpfiles="$tmpfiles mcat-test7.ok"
28 cat << EOF > mcat-test7.ok
29 #: clients/inst_language.ycp:108
30 msgid "one"
31 msgstr "1"
33 #: clients/inst_language.ycp:119
34 msgid "two"
35 msgstr "2"
36 EOF
38 : ${DIFF=diff}
39 ${DIFF} mcat-test7.ok mcat-test7.out
40 result=$?
42 rm -fr $tmpfiles
44 exit $result