1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test --update with --sort-output: POT-Creation-Date changed. This change 5# must not be reflected in the resulting PO file; this is needed for projects 6# which don't put the .pot file under CVS. 7 8cat <<\EOF > mm-u-4.po 9# SOME DESCRIPTIVE TITLE. 10# Copyright (C) YEAR Free Software Foundation, Inc. 11# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 12# 13msgid "" 14msgstr "" 15"Project-Id-Version: cog_training 1.0\n" 16"POT-Creation-Date: 2001-04-29 22:40+0200\n" 17"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 18"Last-Translator: Felix N. <xyz@zyx.uucp>\n" 19"Language-Team: German <de@li.org>\n" 20"Language: de\n" 21"MIME-Version: 1.0\n" 22"Content-Type: text/plain; charset=ISO-8859-1\n" 23"Content-Transfer-Encoding: 8bit\n" 24 25#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 26msgid "white" 27msgstr "wei�" 28 29#~ msgid "green" 30#~ msgstr "gr�n" 31EOF 32 33cat <<EOF > mm-u-4.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 54: ${MSGMERGE=msgmerge} 55${MSGMERGE} -q --update --sort-output mm-u-4.po mm-u-4.pot || Exit 1 56 57cat <<\EOF > mm-u-4.ok 58# SOME DESCRIPTIVE TITLE. 59# Copyright (C) YEAR Free Software Foundation, Inc. 60# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 61# 62msgid "" 63msgstr "" 64"Project-Id-Version: cog_training 1.0\n" 65"POT-Creation-Date: 2001-04-29 22:40+0200\n" 66"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 67"Last-Translator: Felix N. <xyz@zyx.uucp>\n" 68"Language-Team: German <de@li.org>\n" 69"Language: de\n" 70"MIME-Version: 1.0\n" 71"Content-Type: text/plain; charset=ISO-8859-1\n" 72"Content-Transfer-Encoding: 8bit\n" 73 74#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 75msgid "white" 76msgstr "wei�" 77 78#~ msgid "green" 79#~ msgstr "gr�n" 80EOF 81 82: ${DIFF=diff} 83${DIFF} mm-u-4.ok mm-u-4.po 84result=$? 85 86exit $result 87