Merge pull request #12737 from keszybz/meson-man-nspawn
meson: escape dots in man/man helper
This commit is contained in:
+1
-1
@@ -9,4 +9,4 @@ fi
|
||||
target="man/$1.html"
|
||||
ninja -C "@BUILD_ROOT@" "$target"
|
||||
set -x
|
||||
exec xdg-open build/"$target"
|
||||
exec xdg-open "@BUILD_ROOT@/$target"
|
||||
|
||||
+3
-2
@@ -6,10 +6,11 @@ if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
target=$(ninja -C "@BUILD_ROOT@" -t query man/man | grep -E -m1 "man/$1\.[0-9]$" | awk '{print $2}')
|
||||
page="$(echo "$1" | sed 's/\./\\./')"
|
||||
target=$(ninja -C "@BUILD_ROOT@" -t query man/man | grep -E -m1 "man/$page\.[0-9]$" | awk '{print $2}')
|
||||
if [ -z "$target" ]; then
|
||||
echo "Cannot find page $1"
|
||||
exit 1
|
||||
fi
|
||||
ninja -C "@BUILD_ROOT@" "$target"
|
||||
exec man build/"$target"
|
||||
exec man "@BUILD_ROOT@/$target"
|
||||
|
||||
Reference in New Issue
Block a user