ref: 4c2cb616bcb71ab56667b083657ab6d2a35b3d52
parent: 25a82e21d76d8c7f29ac0925276a8939348bd109
author: kvik <[email protected]>
date: Tue Jun 11 09:11:53 EDT 2019
let system mk rules handle the manpage installation
--- a/mkfile
+++ b/mkfile
@@ -3,14 +3,12 @@
TARG=unionfs
OFILES=$TARG.$O
BIN=$home/bin/$objtype
+MAN=/sys/man/4
</sys/src/cmd/mkone
-install:V: sysinstall
+install:V: man
-sysinstall:V:
- cp unionfs.4.man /sys/man/4/unionfs
-
uninstall:V:
rm -f $BIN/$TARG
- rm -f /sys/man/4/$TARG
+ rm -f $MAN/$TARG
--- a/unionfs.4.man
+++ /dev/null
@@ -1,76 +1,0 @@
-.TH UNIONFS 4
-.SH NAME
-unionfs \- union file server
-.SH SYNOPSIS
-.B unionfs
-[
-.B -D
-] [
-.B -abC
-] [
-.B -M
-|
-.B -m
-.I mtpt
-] [
-.B -s
-.I srvname
-] [ [
-.B -c
-]
-.I path ....
-]
-.SH DESCRIPTION
-.PP
-.I Unionfs
-serves a file tree that represents a deep
-merge of the file trees given by one or
-more of the
-.I path
-arguments - unlike the namespace
-operators described in
-.IR bind (2),
-which merge directory contents on
-a single level.
-.PP
-If the
-.I -c
-flag is prefixed to a
-.I path
-it will be marked as a target for file
-creation; otherwise the first path in the
-list will be used.
-.PP
-The command line options are:
-.TF "-s srvname"
-.TP
-.B -D
-Enable 9P trace output.
-.TP
-.BI -s \ srvname
-Post channel on
-.RI /srv/ srvname .
-.TP
-.BI -m \ mtpt
-Set mountpoint
-.RI ( /mnt/union
-by default,
-.I -M
-prevents it)
-.TP
-.B -a, -b, -C
-Work as described in
-.IR bind (1).
-.PD
-.SH EXAMPLES
-.EX
-% unionfs -m /bin /rc/bin /arm/bin -c $home/bin/^(rc arm)
-.EE
-.SH SEE ALSO
-.IR bind (1),
-.IR bind (2)
-.SH SOURCE
-.B git://code.kvik.link/unionfs
-.SH BUGS
-.PP
-You're.
--- /dev/null
+++ b/unionfs.man
@@ -1,0 +1,76 @@
+.TH UNIONFS 4
+.SH NAME
+unionfs \- union file server
+.SH SYNOPSIS
+.B unionfs
+[
+.B -D
+] [
+.B -abC
+] [
+.B -M
+|
+.B -m
+.I mtpt
+] [
+.B -s
+.I srvname
+] [ [
+.B -c
+]
+.I path ....
+]
+.SH DESCRIPTION
+.PP
+.I Unionfs
+serves a file tree that represents a deep
+merge of the file trees given by one or
+more of the
+.I path
+arguments - unlike the namespace
+operators described in
+.IR bind (2),
+which merge directory contents on
+a single level.
+.PP
+If the
+.I -c
+flag is prefixed to a
+.I path
+it will be marked as a target for file
+creation; otherwise the first path in the
+list will be used.
+.PP
+The command line options are:
+.TF "-s srvname"
+.TP
+.B -D
+Enable 9P trace output.
+.TP
+.BI -s \ srvname
+Post channel on
+.RI /srv/ srvname .
+.TP
+.BI -m \ mtpt
+Set mountpoint
+.RI ( /mnt/union
+by default,
+.I -M
+prevents it)
+.TP
+.B -a, -b, -C
+Work as described in
+.IR bind (1).
+.PD
+.SH EXAMPLES
+.EX
+% unionfs -m /bin /rc/bin /arm/bin -c $home/bin/^(rc arm)
+.EE
+.SH SEE ALSO
+.IR bind (1),
+.IR bind (2)
+.SH SOURCE
+.B git://code.kvik.link/unionfs
+.SH BUGS
+.PP
+You're.