summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-scheme-2
blob: e2916a84da031cb4544d88d84cdb41f75d183b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

# Test Scheme support: strings outside any function call.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

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

tmpfiles="$tmpfiles xg-sc-2.po"
: ${XGETTEXT=xgettext}
${XGETTEXT} -k_ --omit-header --no-location --force-po -d xg-sc-2 xg-sc-2.scm
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

tmpfiles="$tmpfiles xg-sc-2.ok"
cat <<EOF > xg-sc-2.ok
EOF

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

rm -fr $tmpfiles

exit $result