3 # Test Lisp support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-ls-2.lisp"
9 cat <<\EOF > xg-ls-2.lisp
11 #| b |# (setq string #| c |#
13 #| e |# (_ #| f |# "hello world" #| g |# ))
16 tmpfiles="$tmpfiles xg-ls-2.tmp.po xg-ls-2.po"
17 : ${XGETTEXT=xgettext}
18 ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \
19 -d xg-ls-2.tmp xg-ls-2.lisp
20 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
21 LC_ALL=C tr -d '\r' < xg-ls-2.tmp.po > xg-ls-2.po
22 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
24 tmpfiles="$tmpfiles xg-ls-2.ok"
25 cat <<EOF > xg-ls-2.ok
37 ${DIFF} xg-ls-2.ok xg-ls-2.po