diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 13:27:41 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 13:27:41 +0200 |
commit | 3fbace03a0e9dbd415efe917561a38f1546919f8 (patch) | |
tree | 42acd84501c89ef7b90c107623ba9c661a5e1386 | |
parent | e19755aa3ca65ba9cf6ed6f6949d3b305d08817d (diff) | |
download | ayatana-indicator-messages-3fbace03a0e9dbd415efe917561a38f1546919f8.tar.gz ayatana-indicator-messages-3fbace03a0e9dbd415efe917561a38f1546919f8.tar.bz2 ayatana-indicator-messages-3fbace03a0e9dbd415efe917561a38f1546919f8.zip |
update-po{,t}.sh: Update script to CMake port of this project.
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rwxr-xr-x | update-po.sh | 2 | ||||
-rwxr-xr-x | update-pot.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6022caa..9327ad2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) set(PROJECT_VERSION "22.2.0") set(PACKAGE ${CMAKE_PROJECT_NAME}) -set(GETTEXT_PACKAGE ${CMAKE_PROJECT_NAME}) +set(GETTEXT_PACKAGE "ayatana-indicator-messages") if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) SET(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "..." FORCE) diff --git a/update-po.sh b/update-po.sh index 5f9e9fd..2043358 100755 --- a/update-po.sh +++ b/update-po.sh @@ -16,7 +16,7 @@ set -x # 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/') cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ diff --git a/update-pot.sh b/update-pot.sh index b0cb9b5..43a8d06 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 |