From 9b9dda0610f76b744c6da6a10eeb981e0032ab27 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 10 May 2023 16:51:58 +0200 Subject: [PATCH] Fixing xtract-xlate-msgs.sh --- xtract-xlate-msgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5