From 41fc263c02ca443504dd2ec1968c027e143eba33 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 29 Nov 2017 13:29:36 +0100 Subject: update-po.sh: Preserve .pot file when updating *.po files. --- update-po.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3