summaryrefslogtreecommitdiff
path: root/update-pot.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-06-27 11:04:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-06-27 11:13:53 +0200
commit670a1321e296b1b24e6030f4f36c9e3c5e8a6784 (patch)
tree9752cdfce71522813d434b3e41742519444dc959 /update-pot.sh
downloadlibrda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.tar.gz
librda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.tar.bz2
librda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.zip
initial draft of the RDA shared library
Diffstat (limited to 'update-pot.sh')
-rwxr-xr-xupdate-pot.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/update-pot.sh b/update-pot.sh
new file mode 100755
index 0000000..a159435
--- /dev/null
+++ b/update-pot.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+set -x
+
+# Copyright (C) 2017 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+#
+# This package is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 3 of the License.
+#
+# This package is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>
+
+GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
+
+cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot && cd - 1>/dev/null
+
+sed -e 's/\.xml\.in\.h:/.xml.in:/g' \
+ -e 's/\.ini\.in\.h:/.ini.in:/g' \
+ -e 's/\.xml\.h:/.xml:/g' \
+ -e 's/\.ini\.h:/.ini:/g' \
+ -i po/${GETTEXT_DOMAIN}.pot