groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
58 lines
1004 B
Groff
58 lines
1004 B
Groff
.TH BUNDLE 1
|
|
.SH NAME
|
|
bundle \- collect files for distribution
|
|
.SH SYNOPSIS
|
|
.B bundle
|
|
.I file ...
|
|
.SH DESCRIPTION
|
|
.I Bundle
|
|
writes on its standard output a shell script for
|
|
.MR rc 1
|
|
or a Bourne shell
|
|
which, when executed,
|
|
will recreate the original
|
|
.IR files .
|
|
Its main use is for distributing small numbers of text files by
|
|
.MR mail 1 .
|
|
.PP
|
|
Although less refined than standard archives from
|
|
.I 9ar
|
|
(see
|
|
.MR 9c 1 )
|
|
or
|
|
.MR tar 1 ,
|
|
a
|
|
.IR bundle
|
|
file
|
|
is self-documenting and complete; little preparation is required on
|
|
the receiving machine.
|
|
.SH EXAMPLES
|
|
.TP
|
|
.L
|
|
bundle mkfile *.[ch] | mail kremvax!boris
|
|
Send a makefile to Boris together with related
|
|
.L .c
|
|
and
|
|
.L .h
|
|
files.
|
|
Upon receiving the mail, Boris may save the file sans postmark,
|
|
say in
|
|
.BR gift/horse ,
|
|
then do
|
|
.TP
|
|
.L
|
|
cd gift; sh horse; mk
|
|
.SH SOURCE
|
|
.B \*9/bin/bundle
|
|
.SH SEE ALSO
|
|
.I 9ar
|
|
(in
|
|
.IR 9c (1)),
|
|
.IR tar (1),
|
|
.MR mail 1
|
|
.SH BUGS
|
|
.I Bundle
|
|
will not create directories and is unsatisfactory for non-text files.
|
|
.PP
|
|
Beware of gift horses.
|