1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test --foreign-user 5 6cat <<EOF > xg-test4.in.c 7_("extract me") 8EOF 9 10: ${XGETTEXT=xgettext} 11# delete POT-Creation-Date: line because the date depends on local time. 12${XGETTEXT} --output xg-test4.tmp --foreign-user --no-location -k_ xg-test4.in.c || Exit 1 13sed -e '/\"POT-Creation-Date:.*/d' < xg-test4.tmp | LC_ALL=C tr -d '\r' > xg-test4.po 14 15cat <<EOF > xg-test4.ok 16# SOME DESCRIPTIVE TITLE. 17# This file is put in the public domain. 18# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 19# 20#, fuzzy 21msgid "" 22msgstr "" 23"Project-Id-Version: PACKAGE VERSION\n" 24"Report-Msgid-Bugs-To: \n" 25"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 26"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 27"Language-Team: LANGUAGE <LL@li.org>\n" 28"Language: \n" 29"MIME-Version: 1.0\n" 30"Content-Type: text/plain; charset=CHARSET\n" 31"Content-Transfer-Encoding: 8bit\n" 32 33msgid "extract me" 34msgstr "" 35EOF 36 37: ${DIFF=diff} 38${DIFF} xg-test4.ok xg-test4.po 39result=$? 40 41exit $result 42