diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-07-17 22:01:40 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-07-17 22:01:40 +0100 |
commit | dd497b76f846f6afed206fc86cf72592dedbbe7d (patch) | |
tree | c99a378fe6dd9301a3c99bc91a9e7d3a2b037ea2 /tx-pull.sh | |
parent | cd00157efca760ce043dcae216d921841dd25ff9 (diff) | |
download | libguestfs-dd497b76f846f6afed206fc86cf72592dedbbe7d.tar.gz libguestfs-dd497b76f846f6afed206fc86cf72592dedbbe7d.tar.xz libguestfs-dd497b76f846f6afed206fc86cf72592dedbbe7d.zip |
Add tx pull wrapper script.
Diffstat (limited to 'tx-pull.sh')
-rwxr-xr-x | tx-pull.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tx-pull.sh b/tx-pull.sh new file mode 100755 index 00000000..be930441 --- /dev/null +++ b/tx-pull.sh @@ -0,0 +1,31 @@ +#!/bin/bash - +# Pull translations from Transifex. +# Copyright (C) 2011 Red Hat 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +set -e +set -v + +echo tx pull +tx pull + +# Remove PO files that have no translations in them. +for f in po/*.po po-docs/*.po; do + if ! grep -q '^msgstr "[^"]' $f; then + echo rm $f + rm $f + fi +done |