3 # Test Perl support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-pl-7.pl"
9 cat <<\EOF > xg-pl-7.pl
20 tmpfiles="$tmpfiles xg-pl-7.tmp.po xg-pl-7.po"
21 : ${XGETTEXT=xgettext}
22 ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \
23 -d xg-pl-7.tmp xg-pl-7.pl
24 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
25 LC_ALL=C tr -d '\r' < xg-pl-7.tmp.po > xg-pl-7.po
26 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
28 tmpfiles="$tmpfiles xg-pl-7.ok"
29 cat <<EOF > xg-pl-7.ok
39 ${DIFF} xg-pl-7.ok xg-pl-7.po