3 # Test the gettext program without -e option.
5 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
6 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
7 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
18 trap 'rm -fr $tmpfiles' 1 2 3 15
20 # Create binary test file in correct position.
21 tmpfiles="$tmpfiles gt-2"
22 test -d gt-2 || mkdir gt-2
23 test -d gt-2/LC_MESSAGES || mkdir gt-2/LC_MESSAGES
24 cp $top_srcdir/tests/test.mo gt-2/LC_MESSAGES
26 tmpfiles="$tmpfiles gt-test2.out"
28 TEXTDOMAINDIR=. LANGUAGE=gt-2 \
29 ${GETTEXT} --env LC_ALL=en test 'error 3' > gt-test2.out
31 # Create correct file.
32 tmpfile="$tmpfiles gtmf-test2.ok"
33 echo $ac_n "error 3 translation$ac_c" > gtmf-test2.ok
36 ${DIFF} gtmf-test2.ok gt-test2.out