~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to tests/xgettext-5

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
trap 'rm -fr $tmpfiles' 1 2 3 15
4
 
 
5
 
tmpfiles="$tmpfiles xg-test5.in.c"
6
 
cat <<EOF > xg-test5.in.c
7
 
main()??<printf(gettext("Hello, " "World!" "??/n")); ??>
8
 
EOF
9
 
 
10
 
tmpfiles="$tmpfiles xg-test5.po"
11
 
: ${XGETTEXT=xgettext}
12
 
${XGETTEXT} --omit-header --trigraphs xg-test5.in.c -d xg-test5
13
 
 
14
 
tmpfiles="$tmpfiles xg-test5.ok"
15
 
cat <<EOF > xg-test5.ok
16
 
msgid "Hello, World!\n"
17
 
msgstr ""
18
 
EOF
19
 
 
20
 
: ${DIFF=diff}
21
 
${DIFF} xg-test5.ok xg-test5.po
22
 
result=$?
23
 
 
24
 
rm -fr $tmpfiles
25
 
 
26
 
exit $result