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

« back to all changes in this revision

Viewing changes to tests/gettext-2

  • 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
 
# One argument is required which is the path to the toplevel directory
3
 
# of the distribution.
4
 
 
5
 
TEXTDOMAINDIR=..
6
 
LANGUAGE=tests
7
 
LC_ALL=en
8
 
LC_MESSAGES=
9
 
LANG=
10
 
export TEXTDOMAINDIR LANGUAGE LC_ALL LC_MESSAGES LANG
11
 
 
12
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
13
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
14
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
15
 
    ac_n= ac_c='
16
 
' ac_t='        '
17
 
  else
18
 
    ac_n=-n ac_c= ac_t=
19
 
  fi
20
 
else
21
 
  ac_n= ac_c='\c' ac_t=
22
 
fi
23
 
 
24
 
trap 'rm -fr $tmpfiles' 1 2 3 15
25
 
 
26
 
# Create binary test file in correct position.
27
 
tmpfiles="LC_MESSAGES"
28
 
test -d LC_MESSAGES || mkdir LC_MESSAGES
29
 
cp $top_srcdir/tests/test.mo LC_MESSAGES
30
 
 
31
 
tmpfiles="$tmpfiles gt-test2.out"
32
 
: ${GETTEXT=gettext}
33
 
${GETTEXT} test 'error 3' > gt-test2.out
34
 
 
35
 
# Create correct file.
36
 
tmpfile="$tmpfiles gtmf-test2.ok"
37
 
echo $ac_n "error 3 translation$ac_c" > gtmf-test2.ok
38
 
 
39
 
: ${DIFF=diff}
40
 
${DIFF} gtmf-test2.ok gt-test2.out
41
 
result=$?
42
 
 
43
 
rm -fr $tmpfiles
44
 
 
45
 
exit $result