No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgunfmt-properties-1
blobe67920358a96c2b145fed7bf899399756bc8c3b9
1 #! /bin/sh
3 # Test of general operation with Java .properties syntax.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mu-p-1.in"
9 cat <<EOF > mu-p-1.in
10 eight=eighth
12 five=fifth
14 four=fourth
16 one=first
18 seven=seventh
20 six=sixth
22 three=third
24 two=second
25 EOF
27 tmpfiles="$tmpfiles mu-p-1.mo"
28 : ${MSGFMT=msgfmt}
29 ${MSGFMT} --properties-input mu-p-1.in -o mu-p-1.mo
30 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
32 tmpfiles="$tmpfiles mu-p-1.out"
33 : ${MSGUNFMT=msgunfmt}
34 ${MSGUNFMT} --properties-output mu-p-1.mo -o mu-p-1.out
35 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
37 : ${DIFF=diff}
38 ${DIFF} mu-p-1.in mu-p-1.out
39 result=$?
41 rm -fr $tmpfiles
43 exit $result