aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-12 14:52:18 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-12 14:52:18 +0100
commitc22f9fbe2e1e0aca6f324879f5fea8bb8b481d6e (patch)
tree673a8e225e592a8f6bd92e0988acf401d2d09ab6
parent2219106afbbb3fb5a6965ecb1454094d57ca0672 (diff)
downloadayatana-indicator-notifications-c22f9fbe2e1e0aca6f324879f5fea8bb8b481d6e.tar.gz
ayatana-indicator-notifications-c22f9fbe2e1e0aca6f324879f5fea8bb8b481d6e.tar.bz2
ayatana-indicator-notifications-c22f9fbe2e1e0aca6f324879f5fea8bb8b481d6e.zip
update-pot.sh: Fix GETTEXT_DOMAIN detection. This is now a CMake project.
-rwxr-xr-xupdate-pot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-pot.sh b/update-pot.sh
index dfd4295..db9c893 100755
--- a/update-pot.sh
+++ b/update-pot.sh
@@ -14,7 +14,7 @@
# 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=//')
+GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot && cd - 1>/dev/null