1#!/bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test Shell support: --add-comments option. 5 6cat <<\EOF > xg-sh-6.sh 7# a 8_ "hello world" # b 9EOF 10 11: ${XGETTEXT=xgettext} 12${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ 13 -d xg-sh-6.tmp xg-sh-6.sh || Exit 1 14LC_ALL=C tr -d '\r' < xg-sh-6.tmp.po > xg-sh-6.po || Exit 1 15 16cat <<EOF > xg-sh-6.ok 17#. a 18msgid "hello world" 19msgstr "" 20EOF 21 22: ${DIFF=diff} 23${DIFF} xg-sh-6.ok xg-sh-6.po 24result=$? 25 26exit $result 27