2 # SPDX-License-Identifier: LGPL-2.1-or-later
6 echo "Use: $0 page-name (with no section suffix)"
10 # make sure the rules have been regenerated (in case update-man-rules was just run)
11 ninja
-C "@BUILD_ROOT@" version.h
14 ninja
-C "@BUILD_ROOT@" "$target"
16 fullname
="@BUILD_ROOT@/$target"
17 if [ -f "$fullname" ]; then
18 redirect
="$(readlink "$fullname" || :)"
22 if [ -n "$redirect" ]; then
23 ninja
-C "@BUILD_ROOT@" "man/$redirect"
25 fullname
="@BUILD_ROOT@/man/$redirect"
29 exec xdg-open
"$fullname"