- speed up msgheadermerge by factor 20-25

OBS-URL: https://build.opensuse.org/package/show/Base:System/translation-update-upstream?expand=0&rev=54
This commit is contained in:
Dirk Mueller 2014-04-23 09:23:00 +00:00 committed by Git OBS Bridge
parent d37ce12d1b
commit cbd57bc6dc
3 changed files with 8 additions and 3 deletions

View File

@ -10,8 +10,8 @@ trap "rm -rf {${1%.po},${2%.po}}-msgheadermerge-temp.{merge-dir,order} ${2%.po}-
RC=0
# Broken pipe is an expected behavior. Redirect stderr to /dev/null.
msgexec -i $1 $0-parse ${1%.po}-msgheadermerge-temp 2>/dev/null
msgexec -i $2 $0-parse ${2%.po}-msgheadermerge-temp 2>/dev/null
msggrep --force-po --msgid -e '^$' $1 | msgexec $0-parse ${1%.po}-msgheadermerge-temp 2>/dev/null
msggrep --force-po --msgid -e '^$' $2 | msgexec $0-parse ${2%.po}-msgheadermerge-temp 2>/dev/null
# If --swap-plural-forms was used, use plural definition from the other header.
if test "$6" = --old-plural-forms ; then

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 23 09:22:19 UTC 2014 - dmueller@suse.com
- speed up msgheadermerge by factor 20-25
-------------------------------------------------------------------
Wed Mar 13 20:29:06 CET 2013 - sbrabec@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package translation-update-upstream
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed