Add a script to remove obsolete messages.
This commit is contained in:
parent
2543bbdc82
commit
1a90972dce
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright 2007, Donatas Glodenis <dgvirtual@akl.lt>
|
||||
# Copyright 2009, Andrius Štikonas <stikonas@gmail.com>
|
||||
#
|
||||
# #
|
||||
# # This script is free software; you can redistribute it and/or modify
|
||||
# # it under the terms of the GNU General Public License 2 as published by
|
||||
# # the Free Software Foundation.
|
||||
#
|
||||
# # This script is distributed in the hope that it will be useful,
|
||||
# # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# # GNU General Public License for more details.
|
||||
# #
|
||||
# # You should have received a copy of the GNU General Public License
|
||||
# # along with this script; if not, write to the Free Software
|
||||
# # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
# obsolete - remove obsolete gettext entries
|
||||
|
||||
|
||||
source "`dirname $0`/ths-variables"
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
folder="$1"
|
||||
else
|
||||
folder="trunk"
|
||||
fi
|
||||
|
||||
for po in `find -L "$folder" -name "*.po"`; do
|
||||
msgattrib --no-obsolete "$po" > "$po".temp
|
||||
mv "$po".temp "$po"
|
||||
done
|
Loading…
Reference in New Issue