No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / gettext-1
blob37d72b889cfdcc864cec253e1e4fcf2f7a3174af
1 #! /bin/sh
2 # One argument is required which is the path to the toplevel directory
3 # of the distribution.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 # Create binary test file in correct position.
9 tmpfiles="$tmpfiles LC_MESSAGES"
10 test -d LC_MESSAGES || mkdir LC_MESSAGES
11 cp $top_srcdir/tests/test.mo LC_MESSAGES
13 tmpfiles="$tmpfiles gt-test1.out"
14 : ${GETTEXT=gettext}
15 TEXTDOMAINDIR=.. LANGUAGE=tests \
16 ${GETTEXT} --env LC_ALL=en -e test 'SYS_(C)\n' > gt-test1.out
18 # Create correct file.
19 tmpfile="$tmpfiles gtmf-test1.ok"
20 cat <<EOF > gtmf-test1.ok
21 MSGFMT(1) portable message object file compiler
22 Copyright (C) 1995 Free Software Foundation
23 Report bugs to <bug-gnu-utils@gnu.org>
24 EOF
26 : ${DIFF=diff}
27 ${DIFF} gtmf-test1.ok gt-test1.out
28 result=$?
30 rm -fr $tmpfiles
32 exit $result