aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:06:01 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:06:01 +0200
commitb67170e5396a78c8a9c3d323e3252313217d5580 (patch)
tree05b203009eeedf0bade56a548452e5d804c74cd4
parentd614cbf727390ee958c6e7fc123edfeedc29fa0c (diff)
downloadayatana-indicator-session-b67170e5396a78c8a9c3d323e3252313217d5580.tar.gz
ayatana-indicator-session-b67170e5396a78c8a9c3d323e3252313217d5580.tar.bz2
ayatana-indicator-session-b67170e5396a78c8a9c3d323e3252313217d5580.zip
update-pot.sh: Adapt to being used with CMake.
-rwxr-xr-xupdate-pot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/update-pot.sh b/update-pot.sh
index 7c1db94..814074e 100755
--- a/update-pot.sh
+++ b/update-pot.sh
@@ -1,5 +1,7 @@
#!/bin/bash
-GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
+set -x
+
+GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot