This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository libx2goclient. commit eb693cdb0791d3665682cbd840b63d18f2e7fda9 Author: Mihai Moldovan <ionic@ionic.de> Date: Fri Jul 12 16:45:00 2019 +0200 update-po{,t}.sh drop useless use of cat. --- update-po.sh | 8 ++++---- update-pot.sh | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/update-po.sh b/update-po.sh index f432308..38e5037 100755 --- a/update-po.sh +++ b/update-po.sh @@ -1,6 +1,7 @@ #!/bin/bash # Copyright (C) 2017 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +# Copyright (C) 2019 by Mihai Moldovan <ionic@ionic.de> # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,12 +15,12 @@ # 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="$(grep -E '^GETTEXT_PACKAGE=' 'configure.ac' | sed -e 's/GETTEXT_PACKAGE=//')" cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ cd po/ -cat LINGUAS | while read lingua; do +while read lingua; do if [ ! -e ${lingua}.po ]; then msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po else @@ -31,8 +32,7 @@ cat LINGUAS | while read lingua; do -e 's/\.xml\.h:/.xml:/g' \ -e 's/\.ini\.h:/.ini:/g' \ -i ${lingua}.po - -done +done < 'LINGUAS' cd - 1>/dev/null mv po/${GETTEXT_DOMAIN}.pot~ po/${GETTEXT_DOMAIN}.pot diff --git a/update-pot.sh b/update-pot.sh index a159435..da96c4f 100755 --- a/update-pot.sh +++ b/update-pot.sh @@ -3,6 +3,7 @@ set -x # Copyright (C) 2017 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +# Copyright (C) 2019 by Mihai Moldovan <ionic@ionic.de> # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,7 +17,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="$(grep -E '^GETTEXT_PACKAGE=' 'configure.ac'| sed -e 's/GETTEXT_PACKAGE=//')" cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot && cd - 1>/dev/null -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git