1#! /bin/sh 2 3# Test --update: POT-Creation-Date changed. This change must not be reflected 4# in the resulting PO file; this is needed for projects which don't put the 5# .pot file under CVS. 6 7tmpfiles="" 8trap 'rm -fr $tmpfiles' 1 2 3 15 9 10tmpfiles="$tmpfiles mm-u-3.po" 11cat <<\EOF > mm-u-3.po 12# SOME DESCRIPTIVE TITLE. 13# Copyright (C) YEAR Free Software Foundation, Inc. 14# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 15# 16msgid "" 17msgstr "" 18"Project-Id-Version: cog_training 1.0\n" 19"POT-Creation-Date: 2001-04-29 22:40+0200\n" 20"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 21"Last-Translator: Felix N. <xyz@zyx.uucp>\n" 22"Language-Team: German <de@li.org>\n" 23"MIME-Version: 1.0\n" 24"Content-Type: text/plain; charset=ISO-8859-1\n" 25"Content-Transfer-Encoding: 8bit\n" 26 27#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 28msgid "white" 29msgstr "wei�" 30EOF 31 32tmpfiles="$tmpfiles mm-u-3.pot" 33cat <<EOF > mm-u-3.pot 34# SOME DESCRIPTIVE TITLE. 35# Copyright (C) YEAR Free Software Foundation, Inc. 36# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 37# 38msgid "" 39msgstr "" 40"Project-Id-Version: PACKAGE VERSION\n" 41"POT-Creation-Date: 2001-04-30 18:51+0200\n" 42"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 43"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 44"Language-Team: LANGUAGE <LL@li.org>\n" 45"MIME-Version: 1.0\n" 46"Content-Type: text/plain; charset=ISO-8859-1\n" 47"Content-Transfer-Encoding: 8bit\n" 48 49#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 50msgid "white" 51msgstr "" 52EOF 53 54tmpfiles="$tmpfiles mm-u-3.po~" 55: ${MSGMERGE=msgmerge} 56${MSGMERGE} -q --update mm-u-3.po mm-u-3.pot 57test $? = 0 || { rm -fr $tmpfiles; exit 1; } 58 59tmpfiles="$tmpfiles mm-u-3.ok" 60cat <<\EOF > mm-u-3.ok 61# SOME DESCRIPTIVE TITLE. 62# Copyright (C) YEAR Free Software Foundation, Inc. 63# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 64# 65msgid "" 66msgstr "" 67"Project-Id-Version: cog_training 1.0\n" 68"POT-Creation-Date: 2001-04-29 22:40+0200\n" 69"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 70"Last-Translator: Felix N. <xyz@zyx.uucp>\n" 71"Language-Team: German <de@li.org>\n" 72"MIME-Version: 1.0\n" 73"Content-Type: text/plain; charset=ISO-8859-1\n" 74"Content-Transfer-Encoding: 8bit\n" 75 76#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 77msgid "white" 78msgstr "wei�" 79EOF 80 81: ${DIFF=diff} 82${DIFF} mm-u-3.ok mm-u-3.po 83result=$? 84 85rm -fr $tmpfiles 86 87exit $result 88