From: Frank Brehm Date: Wed, 10 May 2023 14:51:58 +0000 (+0200) Subject: Fixing xtract-xlate-msgs.sh X-Git-Tag: 0.9.0~1^2~56 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=9b9dda0610f76b744c6da6a10eeb981e0032ab27;p=pixelpark%2Fpp-admin-tools.git Fixing xtract-xlate-msgs.sh --- diff --git a/xtract-xlate-msgs.sh b/xtract-xlate-msgs.sh index 5dd49c0..09b67bb 100755 --- a/xtract-xlate-msgs.sh +++ b/xtract-xlate-msgs.sh @@ -12,7 +12,7 @@ pot_file="${locale_dir}/${locale_domain}.pot" po_with="99" my_address="${DEBEMAIL:-frank.brehm@pixelpark.com}" -pkg_version=$( grep -E '^\s*__version__' lib/pp_admintools/global_version.py | sed -e 's/.*=[ ]*//' -e "s/'//g" ) +pkg_version=$( grep -E '^\s*__version__' lib/pp_admintools/__init__.py | sed -e 's/.*=[ ]*//' -e "s/'//g" ) echo "Package-Version: '${pkg_version}'" pybabel extract bin/* lib \ @@ -46,7 +46,7 @@ for lang in de_DE en_US ; do fi # Updating project version - sed -i -e "s/^\(\"Project-Id-Version:[ ][ ]*[^ ][^ ]*[ ][ ]*\)[^ \\][^ \\]*/\1${pkg_version}/i" "${po_file}" + sed -i -e "s/^\(\"Project-Id-Version:[ ][ ]*[^ ][^ ]*[ ][ ]*\)[^ \\]*/\1${pkg_version}/i" "${po_file}" done