summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-scheme-2
blob: 8c7fbb811bf845466164adc2429fc87bd738abbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Test Scheme support: strings outside any function call.

cat <<EOF > xg-sc-2.scm
(define foo '("bar" "quux"))
EOF

: ${XGETTEXT=xgettext}
${XGETTEXT} -k_ --omit-header --no-location --force-po -d xg-sc-2 xg-sc-2.scm || Exit 1

cat <<EOF > xg-sc-2.ok
EOF

: ${DIFF=diff}
${DIFF} xg-sc-2.ok xg-sc-2.po
result=$?

exit $result