No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / xgettext-sh-3
blob9345a3538adc85d1e3fd3854548205b752e17fb0
1 #!/bin/sh
3 # Test Shell support: backslashed double-quotes inside single-quotes.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-sh-3.sh"
9 cat <<\EOF > xg-sh-3.sh
10 echo `gettext 'abc\"def'`
11 EOF
13 tmpfiles="$tmpfiles xg-sh-3.po"
14 : ${XGETTEXT=xgettext}
15 ${XGETTEXT} --omit-header --no-location xg-sh-3.sh -d xg-sh-3
16 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
18 tmpfiles="$tmpfiles xg-sh-3.ok"
19 cat <<\EOF > xg-sh-3.ok
20 msgid "abc\\\"def"
21 msgstr ""
22 EOF
24 : ${DIFF=diff}
25 ${DIFF} xg-sh-3.ok xg-sh-3.po
26 result=$?
28 rm -fr $tmpfiles
30 exit $result