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

« back to all changes in this revision

Viewing changes to gettext-tools/tests/xgettext-c-1

  • 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
# This test often fails during development. It works after "make dist".
 
4
 
 
5
# Test C support.
 
6
 
 
7
tmpfiles=""
 
8
trap 'rm -fr $tmpfiles' 1 2 3 15
 
9
 
 
10
tmpfiles="$tmpfiles xg-c-1.po"
 
11
: ${XGETTEXT=xgettext}
 
12
${XGETTEXT} -d xg-c-1 -k_ --omit-header --no-location \
 
13
 $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c
 
14
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
15
 
 
16
: ${DIFF=diff}
 
17
${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po
 
18
result=$?
 
19
 
 
20
rm -fr $tmpfiles
 
21
 
 
22
exit $result