]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Hide the warning.
authorBruno Haible <bruno@clisp.org>
Wed, 29 Oct 2003 11:49:28 +0000 (11:49 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:06 +0000 (12:11 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-bash

index 5cb57b1d07dba64ee854084927882f4845f7b02f..1b2b38cf93af8601eb4dce6c361363177a99333d 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * lang-bash: Hide the warning about deprecated syntax.
+
 2003-10-21  Bruno Haible  <bruno@clisp.org>
 
        * msgmerge-25: New file.
        * xgettext-3: Update for changed domain name.
 
 
-See ChangeLog.0 for earlier changes.
\ No newline at end of file
+See ChangeLog.0 for earlier changes.
index b2899dcda0f6331d0251088e18becb25cda2e1cb..030e77c823c2043468e5245cb53869be4612f767 100755 (executable)
@@ -25,9 +25,14 @@ $echo $"'Your command, please?', asked the waiter."
 $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`"
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.pot prog.err"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh
+LC_MESSAGES=C LC_ALL= \
+${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh \
+  >prog.err 2>&1
+result=$?
+cat prog.err | grep -v 'warning: the syntax \$"\.\.\." is deprecated due to security reasons'
+test $result = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<\EOF > prog.ok