• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Verify 'msgcat --sort-output'
5
6cat <<EOF > mcat-test7.in1
7#: clients/inst_language.ycp:119
8msgid "two"
9msgstr "2"
10
11#: clients/inst_language.ycp:108
12msgid ""
13"one"
14msgstr ""
15"1"
16EOF
17
18rm -f mcat-test7.tmp
19: ${MSGCAT=msgcat}
20${MSGCAT} --sort-output -o mcat-test7.tmp mcat-test7.in1 || Exit 1
21LC_ALL=C tr -d '\r' < mcat-test7.tmp > mcat-test7.out || Exit 1
22
23cat << EOF > mcat-test7.ok
24#: clients/inst_language.ycp:108
25msgid "one"
26msgstr "1"
27
28#: clients/inst_language.ycp:119
29msgid "two"
30msgstr "2"
31EOF
32
33: ${DIFF=diff}
34${DIFF} mcat-test7.ok mcat-test7.out
35result=$?
36
37exit $result
38