]>
git.ipfire.org Git - thirdparty/systemd.git/blob - man/man.in
5 echo "Use: $0 page-name (with no section suffix)"
9 # make sure the rules have been regenrated (in case man/update-man-rules was just run)
10 ninja
-C "@BUILD_ROOT@" version.h
12 page
="$(echo "$1" | sed 's/\./\\./')"
13 target
=$
(ninja
-C "@BUILD_ROOT@" -t query man
/man |
grep -E -m1 "man/$page\.[0-9]$" |
awk '{print $2}')
14 if [ -z "$target" ]; then
15 echo "Cannot find page $1"
18 ninja
-C "@BUILD_ROOT@" "$target"
19 exec man
"@BUILD_ROOT@/$target"