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