• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test of general operation with Java .properties syntax.
5
6cat <<EOF > mu-p-1.in
7eight=eighth
8
9five=fifth
10
11four=fourth
12
13one=first
14
15seven=seventh
16
17six=sixth
18
19three=third
20
21two=second
22EOF
23
24: ${MSGFMT=msgfmt}
25${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in || Exit 1
26
27: ${MSGUNFMT=msgunfmt}
28${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo || Exit 1
29LC_ALL=C tr -d '\r' < mu-p-1.tmp > mu-p-1.out || Exit 1
30
31: ${DIFF=diff}
32${DIFF} mu-p-1.in mu-p-1.out
33result=$?
34
35exit $result
36