diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-22 23:30:46 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-22 23:32:56 +0200 |
commit | b77395b931e9509b77650cc5c89159068e70cda1 (patch) | |
tree | 1ab1a60bb67ab5b16502c02e04d994a83afa09b3 /po | |
parent | 809304cbb3d6b5fa45d849712fc7288654687cb2 (diff) | |
download | tdv-b77395b931e9509b77650cc5c89159068e70cda1.tar.gz tdv-b77395b931e9509b77650cc5c89159068e70cda1.tar.xz tdv-b77395b931e9509b77650cc5c89159068e70cda1.zip |
make-template.sh: minor improvements
Normalize the locale, and be more friendly towards paths with spaces.
Diffstat (limited to 'po')
-rwxr-xr-x | po/make-template.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/po/make-template.sh b/po/make-template.sh index 8232e4d..38c2a02 100755 --- a/po/make-template.sh +++ b/po/make-template.sh @@ -5,6 +5,8 @@ # should not need to run the whole configuration process just to get this file. dir=$(dirname $0) +export LC_ALL=C + re='^[ \t]*project *( *\([^ \t)]\{1,\}\) \{1,\}VERSION \{1,\}\([^ \t)]\{1,\}\).*' package=$(sed -n "s/$re/\\1/p" "$dir/../CMakeLists.txt") version=$(sed -n "s/$re/\\2/p" "$dir/../CMakeLists.txt") @@ -13,7 +15,7 @@ if [ -z "$package" -o -z "$version" ]; then exit 1 fi -xgettext -LC -k_ -kN_ $dir/../src/*.c -o "$dir/$package.pot" \ +xgettext -LC -k_ -kN_ "$dir"/../src/*.c -o "$dir/$package.pot" \ --package-name="$package" --package-version="$version" \ --copyright-holder="Přemysl Eric Janouch" \ --msgid-bugs-address="https://git.janouch.name/p/$package/issues" |