1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Verify --sort-by-file. 5 6cat <<EOF > mcat-test20.in 7#: clients/inst_language.ycp:119 8msgid "one" 9msgstr "1" 10 11#: clients/inst_language.ycp:108 12msgid "" 13"two" 14msgstr "" 15"2" 16 17#: clients/inst_language.ycp:108 18msgid "three" 19msgstr "3" 20 21#: clients/inst_language.ycp:103 22msgctxt "foo" 23msgid "four" 24msgstr "4" 25 26#: clients/inst_language.ycp:103 27msgctxt "bar" 28msgid "four" 29msgstr "4" 30EOF 31 32: ${MSGCAT=msgcat} 33${MSGCAT} --sort-by-file -o mcat-test20.tmp mcat-test20.in || Exit 1 34LC_ALL=C tr -d '\r' < mcat-test20.tmp > mcat-test20.out || Exit 1 35 36cat << EOF > mcat-test20.ok 37#: clients/inst_language.ycp:103 38msgctxt "bar" 39msgid "four" 40msgstr "4" 41 42#: clients/inst_language.ycp:103 43msgctxt "foo" 44msgid "four" 45msgstr "4" 46 47#: clients/inst_language.ycp:108 48msgid "three" 49msgstr "3" 50 51#: clients/inst_language.ycp:108 52msgid "two" 53msgstr "2" 54 55#: clients/inst_language.ycp:119 56msgid "one" 57msgstr "1" 58EOF 59 60: ${DIFF=diff} 61${DIFF} mcat-test20.ok mcat-test20.out 62result=$? 63 64exit $result 65