2
# One argument is required which is the path to the toplevel directory
10
export TEXTDOMAINDIR LANGUAGE LC_ALL LC_MESSAGES LANG
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
24
trap 'rm -fr $tmpfiles' 1 2 3 15
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
31
tmpfiles="$tmpfiles gt-test2.out"
33
${GETTEXT} test 'error 3' > gt-test2.out
35
# Create correct file.
36
tmpfile="$tmpfiles gtmf-test2.ok"
37
echo $ac_n "error 3 translation$ac_c" > gtmf-test2.ok
40
${DIFF} gtmf-test2.ok gt-test2.out