diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-29 13:29:36 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-29 13:29:53 +0100 |
commit | 41fc263c02ca443504dd2ec1968c027e143eba33 (patch) | |
tree | 97e1091d2dafe6e995292fc61067f2acbdf0cefd /update-po.sh | |
parent | 765b17cd62f4b91a6e3f10420aeea6d1891bc479 (diff) | |
download | ayatana-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-x | update-po.sh | 4 |
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 |