aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:29:36 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:29:53 +0100
commit41fc263c02ca443504dd2ec1968c027e143eba33 (patch)
tree97e1091d2dafe6e995292fc61067f2acbdf0cefd /update-po.sh
parent765b17cd62f4b91a6e3f10420aeea6d1891bc479 (diff)
downloadayatana-indicator-keyboard-41fc263c02ca443504dd2ec1968c027e143eba33.tar.gz
ayatana-indicator-keyboard-41fc263c02ca443504dd2ec1968c027e143eba33.tar.bz2
ayatana-indicator-keyboard-41fc263c02ca443504dd2ec1968c027e143eba33.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 d1f375d2..5f9e9fdb 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