diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-21 15:06:01 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-21 15:06:01 +0200 |
commit | b67170e5396a78c8a9c3d323e3252313217d5580 (patch) | |
tree | 05b203009eeedf0bade56a548452e5d804c74cd4 /update-pot.sh | |
parent | d614cbf727390ee958c6e7fc123edfeedc29fa0c (diff) | |
download | ayatana-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.
Diffstat (limited to 'update-pot.sh')
-rwxr-xr-x | update-pot.sh | 4 |
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 |