man: fix path to version.h

Follow-up for 30d20907bd.
This commit is contained in:
Yu Watanabe
2025-05-15 22:32:30 +09:00
committed by Daan De Meyer
parent 7762e9bbb2
commit 9fd936df77
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ if [ -z "$1" ]; then
fi
# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
ninja -C "@BUILD_ROOT@" src/version/version.h
target="man/$1.html"
ninja -C "@BUILD_ROOT@" "$target"

View File

@@ -9,7 +9,7 @@ if [ -z "$1" ]; then
fi
# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
ninja -C "@BUILD_ROOT@" src/version/version.h
page="$(echo "$1" | sed 's/\./\\./')"
target=$(ninja -C "@BUILD_ROOT@" -t query man/man | grep -E -m1 "man/$page\.[0-9]$" | awk '{print $2}')