Compare commits

...

2 Commits

Author SHA1 Message Date
b77395b931
make-template.sh: minor improvements
Normalize the locale, and be more friendly towards paths with spaces.
2021-10-22 23:32:56 +02:00
809304cbb3
README: fix cross-building instructions
Copy-pasting and mental exhaustion do not go well together.
2021-10-22 23:32:52 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,7 @@ for Windows. It isn't particularly usable on that system, if only because
selection watching is a very X11/Wayland-specific feature. Beware that build
dependencies take up almost a gigabyte of disk space.
$ sh cmake/Win64Depends.cmake
$ sh cmake/Win64Depends.sh
$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Win64CrossToolchain.cmake \
-DCMAKE_BUILD_TYPE=Release -B build
$ cmake --build build -- package

View File

@ -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"