1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test extractor of Free Pascal .rst files. 5 6cat <<\EOF > xg-rst-1.rst 7 8# hash value = 153469889 9hello.hello_world='Hello, world!' 10 11 12# hash value = 1323310 13hello.running_as='This program is running as process number %d.' 14 15EOF 16 17: ${XGETTEXT=xgettext} 18${XGETTEXT} -o xg-rst-1.tmp xg-rst-1.rst || Exit 1 19func_filter_POT_Creation_Date xg-rst-1.tmp xg-rst-1.po 20 21cat <<\EOF > xg-rst-1.ok 22# SOME DESCRIPTIVE TITLE. 23# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 24# This file is distributed under the same license as the PACKAGE package. 25# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 26# 27#, fuzzy 28msgid "" 29msgstr "" 30"Project-Id-Version: PACKAGE VERSION\n" 31"Report-Msgid-Bugs-To: \n" 32"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 33"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 34"Language-Team: LANGUAGE <LL@li.org>\n" 35"Language: \n" 36"MIME-Version: 1.0\n" 37"Content-Type: text/plain; charset=CHARSET\n" 38"Content-Transfer-Encoding: 8bit\n" 39 40#: hello.hello_world 41msgid "Hello, world!" 42msgstr "" 43 44#: hello.running_as 45#, object-pascal-format 46msgid "This program is running as process number %d." 47msgstr "" 48EOF 49 50: ${DIFF=diff} 51${DIFF} xg-rst-1.ok xg-rst-1.po 52result=$? 53 54exit $result 55