3 # Test Scheme support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-sc-1.scm"
9 cat <<EOF > xg-sc-1.scm
10 ; This comment will not be extracted.
12 ;; TRANSLATORS: This is an extracted comment.
14 #! Not extracted either.
16 (display (_ "The Fabulous Four"))
19 tmpfiles
="$tmpfiles xg-sc-1.po"
20 : ${XGETTEXT=xgettext}
21 ${XGETTEXT} -k_ --omit-header --no-location --add-comments=TRANSLATORS
: \
22 xg-sc-1.scm
-d xg-sc-1
23 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
25 tmpfiles
="$tmpfiles xg-sc-1.ok"
26 cat <<EOF > xg-sc-1.ok
30 #. TRANSLATORS: This is an extracted comment.
34 msgid "The Fabulous Four"
39 ${DIFF} xg-sc-1.ok xg-sc-1.po