ref: 27bcd8512583e6cf64a74f53071111d642e67e61
parent: 557383038cbb660e1d706a513f56fd0538b933b8
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jan 1 11:07:19 EST 2015
Add man prefix support. Those don't always go in the same place.
--- a/config+plan9-x64.myr
+++ b/config+plan9-x64.myr
@@ -7,4 +7,5 @@
const Ascmd = ["6a"]
const Directlib = true
const Runtime = "_myrrt.6"
+ const Manprefix = "/sys/man/
;;
--- a/configure
+++ b/configure
@@ -41,6 +41,7 @@
echo "const Arcmd = [\"ar\", \"-rcs\"]" >> config.myr
echo "const Ascmd = [\"as\", \"-g\"]" >> config.myr
echo "const Directlib = false" >> config.myr
+echo "const Manprefix = \"/usr/share/man/man"
case $OS in
*Linux*)
echo 'export SYS=linux' >> config.mk
--- a/install.myr
+++ b/install.myr
@@ -83,7 +83,7 @@
;;
;;
- manrel = std.fmt("share/man/man%s", man[sect:])
+ manrel = std.fmt("%s%s", config.Manprefix, man[sect:])
movefile(delete, man, opt_instroot, opt_destdir, manrel)
std.slfree(manrel)
}