aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:31:03 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:31:03 +0100
commitdc3570f8ee224c6f23b97c4b8e190b813279114b (patch)
tree4510f2228d434ccf98265e266155aae41b8aefac /update-po.sh
parent9d1d04ef05d88420362e7766692bb01bab0c5546 (diff)
downloadayatana-indicator-messages-dc3570f8ee224c6f23b97c4b8e190b813279114b.tar.gz
ayatana-indicator-messages-dc3570f8ee224c6f23b97c4b8e190b813279114b.tar.bz2
ayatana-indicator-messages-dc3570f8ee224c6f23b97c4b8e190b813279114b.zip
update-po.sh: Preserve .pot file when updating *.po files.
Diffstat (limited to 'update-po.sh')
-rwxr-xr-xupdate-po.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/update-po.sh b/update-po.sh
index d1f375d..5f9e9fd 100755
--- a/update-po.sh
+++ b/update-po.sh
@@ -18,6 +18,8 @@ set -x
GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
+cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~
+
cd po/
cat LINGUAS | while read lingua; do
if [ ! -e ${lingua}.po ]; then
@@ -34,3 +36,5 @@ cat LINGUAS | while read lingua; do
done
cd - 1>/dev/null
+
+mv po/${GETTEXT_DOMAIN}.pot~ po/${GETTEXT_DOMAIN}.pot