From: Bruno Haible Date: Sun, 16 May 2010 13:32:32 +0000 (+0200) Subject: Avoid known, harmless warning. X-Git-Tag: v0.18.1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce0da06ea84f76ca845e9f6bbc4da960ee7e8de;p=thirdparty%2Fgettext.git Avoid known, harmless warning. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 9d0335b4d..ca0ae49ac 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-16 Bruno Haible + + * convert-archive.in: Remove known 'rlog' warning from error output. + (func_version): Update copyright years. + 2010-05-09 Bruno Haible * gettext-0.18 released. diff --git a/gettext-tools/misc/convert-archive.in b/gettext-tools/misc/convert-archive.in index e4c0b33fa..ff3d4b245 100644 --- a/gettext-tools/misc/convert-archive.in +++ b/gettext-tools/misc/convert-archive.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -46,7 +46,7 @@ Report bugs to ." func_version () { echo "$progname (GNU $package) $version" - echo "Copyright (C) 2009 Free Software Foundation, Inc. + echo "Copyright (C) 2009-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." @@ -150,10 +150,12 @@ ba } /^keyword substitution:/q' sed_extract_tags_from_log2='s/^ \([^:]*\):.*/\1/' + rlog_harmless_warning_regex="warning: Unknown phrases like \`commitid \.\.\.;' are present\." tags=` - LC_ALL=C rlog "$cvs_dir"/archive/$witness,v | \ - sed -n -e "$sed_extract_tags_from_log1" | \ - sed -e "$sed_extract_tags_from_log2"` + ( LC_ALL=C rlog "$cvs_dir"/archive/$witness,v 2>&1 1>&3 \ + | grep -v "$rlog_harmless_warning_regex" 1>&2 ) 3>&1 \ + | sed -n -e "$sed_extract_tags_from_log1" \ + | sed -e "$sed_extract_tags_from_log2"` sed_tag_to_version='s/_/./g' for tag in $tags; do if test $tag != release; then