aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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