summaryrefslogtreecommitdiffstats
path: root/refresh-translations
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2018-02-21 22:28:11 +0100
committersegfault <segfault@riseup.net>2018-02-21 22:28:11 +0100
commit613bbd8c409915ac7d382361d3bbb2110b502492 (patch)
tree587b9c0deab26e0a2f16526146b151757f900d04 /refresh-translations
parent2cb0c90c3472a761a3c3a65c83034367f8a40021 (diff)
parentc02640b43392d51d989decdedb1fd86db8991ee2 (diff)
Merge branch 'devel' into feature/5684-screen-locker
Diffstat (limited to 'refresh-translations')
-rwxr-xr-xrefresh-translations10
1 files changed, 7 insertions, 3 deletions
diff --git a/refresh-translations b/refresh-translations
index 86b1b38..d95bf39 100755
--- a/refresh-translations
+++ b/refresh-translations
@@ -134,15 +134,16 @@ intltool_merge_xml () {
### Main
-# Schedule clean up
-trap "rm -fr tmp/pot po/*.new po/*.orig" EXIT
-
FORCE=no
+KEEP_TMP_POT=no
while [ -n "${@:-}" ]; do
case "${1:-}" in
'--force')
FORCE=yes
;;
+ '--keep-tmp-pot')
+ KEEP_TMP_POT=yes
+ ;;
*)
echo "Unknown option: ${1}"
exit 1
@@ -151,6 +152,9 @@ while [ -n "${@:-}" ]; do
shift
done
+# Schedule clean up
+trap "rm -fr po/*.new po/*.orig ; [ "$KEEP_TMP_POT" = yes ] || rm -fr tmp/pot" EXIT
+
# Update POT files
mkdir -p tmp/pot
for prog in $PERL_PROGS ; do create_pot $prog Perl ; done