• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
1#! /bin/sh
2
3# Test of general operation with Java .properties syntax.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mu-p-1.in"
9cat <<EOF > mu-p-1.in
10eight=eighth
11
12five=fifth
13
14four=fourth
15
16one=first
17
18seven=seventh
19
20six=sixth
21
22three=third
23
24two=second
25EOF
26
27tmpfiles="$tmpfiles mu-p-1.mo"
28: ${MSGFMT=msgfmt}
29${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in
30test $? = 0 || { rm -fr $tmpfiles; exit 1; }
31
32tmpfiles="$tmpfiles mu-p-1.tmp mu-p-1.out"
33: ${MSGUNFMT=msgunfmt}
34${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo
35test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36tr -d '\r' < mu-p-1.tmp > mu-p-1.out
37test $? = 0 || { rm -fr $tmpfiles; exit 1; }
38
39: ${DIFF=diff}
40${DIFF} mu-p-1.in mu-p-1.out
41result=$?
42
43rm -fr $tmpfiles
44
45exit $result
46