1#! /bin/sh 2 3# Test compendium option. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mm-c-1.in1 mm-c-1.com mm-c-1.pot" 9cat <<EOF > mm-c-1.in1 10#: file.c:123 11msgid "1" 12msgstr "1x" 13EOF 14 15cat <<EOF > mm-c-1.com 16#: file.c:345 17msgid "2" 18msgstr "2x" 19EOF 20 21cat <<EOF > mm-c-1.pot 22#: file.c:123 23msgid "1" 24msgstr "" 25 26#: file.c:345 27msgid "2" 28msgstr "" 29EOF 30 31tmpfiles="$tmpfiles mm-c-1.out" 32: ${MSGMERGE=msgmerge} 33${MSGMERGE} -q -C mm-c-1.com -o mm-c-1.out mm-c-1.in1 mm-c-1.pot 34test $? = 0 || { rm -fr $tmpfiles; exit 1; } 35 36tmpfiles="$tmpfiles mm-c-1.ok" 37cat << EOF > mm-c-1.ok 38#: file.c:123 39msgid "1" 40msgstr "1x" 41 42#: file.c:345 43msgid "2" 44msgstr "2x" 45EOF 46 47: ${DIFF=diff} 48${DIFF} mm-c-1.ok mm-c-1.out 49result=$? 50 51rm -fr $tmpfiles 52 53exit $result 54