1#! /bin/sh 2 3# Verify 'msgcat --sort-output' 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mcat-test7.in1" 9cat <<EOF > mcat-test7.in1 10#: clients/inst_language.ycp:119 11msgid "two" 12msgstr "2" 13 14#: clients/inst_language.ycp:108 15msgid "" 16"one" 17msgstr "" 18"1" 19EOF 20 21tmpfiles="$tmpfiles mcat-test7.tmp mcat-test7.out" 22rm -f mcat-test7.tmp 23: ${MSGCAT=msgcat} 24${MSGCAT} --sort-output -o mcat-test7.tmp mcat-test7.in1 25test $? = 0 || { rm -fr $tmpfiles; exit 1; } 26tr -d '\r' < mcat-test7.tmp > mcat-test7.out 27test $? = 0 || { rm -fr $tmpfiles; exit 1; } 28 29tmpfiles="$tmpfiles mcat-test7.ok" 30cat << EOF > mcat-test7.ok 31#: clients/inst_language.ycp:108 32msgid "one" 33msgstr "1" 34 35#: clients/inst_language.ycp:119 36msgid "two" 37msgstr "2" 38EOF 39 40: ${DIFF=diff} 41${DIFF} mcat-test7.ok mcat-test7.out 42result=$? 43 44rm -fr $tmpfiles 45 46exit $result 47