aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 16:27:00 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 16:27:00 +0200
commit6598b721470e9b9387b76c5f2126ecb0f7b5fc98 (patch)
tree1a4881d4ce078a326b1174e98ed2493bc1fa4cc0
parent18148c2a58c72ce6d9cd478b45cd547dbeb7e282 (diff)
downloadremote-logon-service-6598b721470e9b9387b76c5f2126ecb0f7b5fc98.tar.gz
remote-logon-service-6598b721470e9b9387b76c5f2126ecb0f7b5fc98.tar.bz2
remote-logon-service-6598b721470e9b9387b76c5f2126ecb0f7b5fc98.zip
update-po.sh: Add simple script to update po/*.po files.
-rwxr-xr-xupdate-po.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update-po.sh b/update-po.sh
new file mode 100755
index 0000000..15e9d53
--- /dev/null
+++ b/update-po.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -x
+
+GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
+
+cd po/
+cat LINGUAS | while read lingua; do touch ${lingua}.po; intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}); done
+cd - 1>/dev/null