1#!/bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test Smalltalk support: --add-comments option.
5
6cat <<\EOF > xg-st-2.st
7"a"
8"b" Transcript showCr:
9"c" (
10"d" NLS
11"e" ?
12"f" 'hello world' "h" ).
13EOF
14
15: ${XGETTEXT=xgettext}
16${XGETTEXT} --add-comments --omit-header --no-location \
17  -d xg-st-2.tmp xg-st-2.st || Exit 1
18LC_ALL=C tr -d '\r' < xg-st-2.tmp.po > xg-st-2.po || Exit 1
19
20cat <<EOF > xg-st-2.ok
21#. a
22#. b
23#. c
24#. d
25#. e
26#. f
27msgid "hello world"
28msgstr ""
29EOF
30
31: ${DIFF=diff}
32${DIFF} xg-st-2.ok xg-st-2.po
33result=$?
34
35exit $result
36