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