3 # Test Shell support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-sh-6.sh"
9 cat <<\EOF > xg-sh-6.sh
14 tmpfiles="$tmpfiles xg-sh-6.tmp.po xg-sh-6.po"
15 : ${XGETTEXT=xgettext}
16 ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \
17 -d xg-sh-6.tmp xg-sh-6.sh
18 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
19 LC_ALL=C tr -d '\r' < xg-sh-6.tmp.po > xg-sh-6.po
20 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
22 tmpfiles="$tmpfiles xg-sh-6.ok"
23 cat <<EOF > xg-sh-6.ok
30 ${DIFF} xg-sh-6.ok xg-sh-6.po