2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test the gettext program without -e option.
6 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
7 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
8 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
18 # Create binary test file in correct position.
19 test -d gt-2 || mkdir gt-2
20 test -d gt-2/LC_MESSAGES || mkdir gt-2/LC_MESSAGES
21 cp "$abs_srcdir"/test.mo gt-2/LC_MESSAGES
24 TEXTDOMAINDIR=. LANGUAGE=gt-2 \
25 ${GETTEXT} --env LC_ALL=en test 'error 3' > gt-test2.out
27 # Create correct file.
28 echo $ac_n "error 3 translation$ac_c" > gtmf-test2.ok
31 ${DIFF} gtmf-test2.ok gt-test2.out