mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fixes
This commit is contained in:
parent
359c1e017e
commit
67075c3634
5 changed files with 258 additions and 13 deletions
7
bin/9.rc
Executable file
7
bin/9.rc
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/local/plan9/bin/rc
|
||||||
|
|
||||||
|
PLAN9=/usr/local/plan9
|
||||||
|
if(! ~ $path(1) $PLAN9/bin)
|
||||||
|
path=($PLAN9/bin $path)
|
||||||
|
|
||||||
|
! ~ $#* 0 && exec $*
|
19
bin/man
19
bin/man
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/local/plan9/bin/rc
|
#!/usr/local/plan9/bin/rc
|
||||||
|
|
||||||
|
. 9.rc
|
||||||
|
whatis path
|
||||||
|
whatis troff
|
||||||
. $PLAN9/man/fonts
|
. $PLAN9/man/fonts
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -22,6 +25,7 @@ fn roff {
|
||||||
preproc=($preproc eqn)
|
preproc=($preproc eqn)
|
||||||
if(~ $x *tbl*)
|
if(~ $x *tbl*)
|
||||||
preproc=($preproc tbl)
|
preproc=($preproc tbl)
|
||||||
|
|
||||||
switch($#preproc) {
|
switch($#preproc) {
|
||||||
case 0
|
case 0
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN
|
||||||
|
@ -39,7 +43,7 @@ fn roff {
|
||||||
fn doecho { echo $1 }
|
fn doecho { echo $1 }
|
||||||
fn dotroff { roff t $1 }
|
fn dotroff { roff t $1 }
|
||||||
fn doproof { roff t $1 | proof }
|
fn doproof { roff t $1 | proof }
|
||||||
fn dopage { roff t $1 | page }
|
fn dopage { roff t $1 | tr2post | psfonts | page }
|
||||||
fn donroff {
|
fn donroff {
|
||||||
roff n $1 | sed '
|
roff n $1 | sed '
|
||||||
${
|
${
|
||||||
|
@ -62,19 +66,12 @@ fn dohtml {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# setup
|
|
||||||
#
|
|
||||||
if(! ~ $path(1) $PLAN9/bin)
|
|
||||||
path=($PLAN9/bin $path)
|
|
||||||
cmd=donroff
|
|
||||||
sec=()
|
|
||||||
S=$PLAN9/man
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# parse flags and sections
|
# parse flags and sections
|
||||||
#
|
#
|
||||||
|
cmd=donroff
|
||||||
|
sec=()
|
||||||
|
S=$PLAN9/man
|
||||||
d=0
|
d=0
|
||||||
while(~ $d 0) {
|
while(~ $d 0) {
|
||||||
if(~ $#* 0) {
|
if(~ $#* 0) {
|
||||||
|
|
2
bin/page
2
bin/page
|
@ -81,7 +81,7 @@ case $# in
|
||||||
tmp=$tmp.png
|
tmp=$tmp.png
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 1>&2 unrecognized file format
|
echo 1>&2 page: unrecognized file type on standard input
|
||||||
rm -f $tmp
|
rm -f $tmp
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
24
man/man1/9.1
24
man/man1/9.1
|
@ -1,6 +1,6 @@
|
||||||
.TH 9 1
|
.TH 9 1
|
||||||
.SH NAME
|
.SH NAME
|
||||||
9 \- run Plan 9 commands
|
9, 9.rc \- run Plan 9 commands
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B 9
|
.B 9
|
||||||
.I cmd
|
.I cmd
|
||||||
|
@ -11,6 +11,20 @@
|
||||||
.PP
|
.PP
|
||||||
.B .
|
.B .
|
||||||
.B 9
|
.B 9
|
||||||
|
(from
|
||||||
|
.IR sh (1))
|
||||||
|
.PP
|
||||||
|
.B 9.rc
|
||||||
|
.I cmd
|
||||||
|
[
|
||||||
|
.I args
|
||||||
|
\&...
|
||||||
|
]
|
||||||
|
.PP
|
||||||
|
.B .
|
||||||
|
.B 9.rc
|
||||||
|
(from
|
||||||
|
.IR rc (1))
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Because Plan 9 supplies commands with the same name as but different
|
Because Plan 9 supplies commands with the same name as but different
|
||||||
behavior than many basic Unix system commands
|
behavior than many basic Unix system commands
|
||||||
|
@ -42,6 +56,12 @@ shells using
|
||||||
.B .
|
.B .
|
||||||
.B 9
|
.B 9
|
||||||
in order to make the current shell start running in the Plan 9 environment.
|
in order to make the current shell start running in the Plan 9 environment.
|
||||||
|
.PP
|
||||||
|
.I 9.rc
|
||||||
|
is the same as
|
||||||
|
.I 9
|
||||||
|
but written for the shell
|
||||||
|
.IR rc (1).
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
Search for greek in the password file:
|
Search for greek in the password file:
|
||||||
.IP
|
.IP
|
||||||
|
@ -58,5 +78,7 @@ with the Plan 9 commands in the path before the system commands.
|
||||||
.EE
|
.EE
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B \*9/bin/9
|
.B \*9/bin/9
|
||||||
|
.br
|
||||||
|
.B \*9/bin/9.rc
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.IR intro (1)
|
.IR intro (1)
|
||||||
|
|
219
man/man1/cvs.1
Normal file
219
man/man1/cvs.1
Normal file
|
@ -0,0 +1,219 @@
|
||||||
|
.TH CVS 1
|
||||||
|
.SH NAME
|
||||||
|
cvs \- introduction using plan9port CVS repository
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B cvs
|
||||||
|
.B -d
|
||||||
|
.B :pserver:anoncvs@cvs.pdos.lcs.mit.edu:/cvs login
|
||||||
|
.PP
|
||||||
|
.B cvs
|
||||||
|
.B -d
|
||||||
|
.B :pserver:anoncvs@cvs.pdos.lcs.mit.edu:/cvs checkout plan9
|
||||||
|
.PP
|
||||||
|
.B cvs
|
||||||
|
.B update
|
||||||
|
[
|
||||||
|
.B -dP
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.I path ...
|
||||||
|
]
|
||||||
|
.PP
|
||||||
|
.B cvs
|
||||||
|
.B status
|
||||||
|
[
|
||||||
|
.I path ...
|
||||||
|
]
|
||||||
|
.PP
|
||||||
|
.B cvs
|
||||||
|
.B diff
|
||||||
|
[
|
||||||
|
.B -D
|
||||||
|
.I date
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.B -r
|
||||||
|
.I revision
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.B -u
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.I path ...
|
||||||
|
]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The master source tree for Plan 9 from User Space is maintained
|
||||||
|
using the source control system CVS
|
||||||
|
as a poor substitute for Plan 9's
|
||||||
|
\fIreplica\fR(8) and dump file system.
|
||||||
|
.PP
|
||||||
|
The first argument to
|
||||||
|
.I cvs
|
||||||
|
is a command, which determines the form of the rest of the command line.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
|
.B login
|
||||||
|
command authenticates to the remote server and records your password in
|
||||||
|
.BR $HOME/.cvspass .
|
||||||
|
Use an empty password: when prompted, type a newline.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
|
.B checkout
|
||||||
|
command downloads a copy of the tree into the directory
|
||||||
|
.BR plan9 ,
|
||||||
|
which it will create.
|
||||||
|
The argument
|
||||||
|
.B plan9
|
||||||
|
is both the name of the created directory and the name used to
|
||||||
|
tell the server which tree you want.
|
||||||
|
If you want to use a different name locally, rename the directory
|
||||||
|
after running the command.
|
||||||
|
.PP
|
||||||
|
From directories within the
|
||||||
|
.B plan9
|
||||||
|
tree, the awkward
|
||||||
|
.B -d
|
||||||
|
is no longer necessary.
|
||||||
|
.PP
|
||||||
|
.I Cvs
|
||||||
|
.I update
|
||||||
|
incorporates recent changes from the CVS tree
|
||||||
|
into the local copy.
|
||||||
|
If the changes cannot be merged because of locally-made changes
|
||||||
|
that are in the way,
|
||||||
|
.I cvs
|
||||||
|
will leave a note in the file showing the differences between the local
|
||||||
|
and remote file.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
|
.B -d
|
||||||
|
flag to
|
||||||
|
.I cvs
|
||||||
|
.I update
|
||||||
|
causes
|
||||||
|
it to update subdirectories as well.
|
||||||
|
The
|
||||||
|
.B -P
|
||||||
|
flag causes
|
||||||
|
.I cvs
|
||||||
|
.I update
|
||||||
|
to remove directories that have been emptied.
|
||||||
|
.PP
|
||||||
|
.I Cvs
|
||||||
|
.I status
|
||||||
|
displays the version number (also called a revision number)
|
||||||
|
for the local copy of the named files,
|
||||||
|
as well as the number of the most recent version on the server.
|
||||||
|
Version numbers are of the form
|
||||||
|
.RI 1. n \fR,
|
||||||
|
where
|
||||||
|
.I n
|
||||||
|
is a sequence number starting at 1.
|
||||||
|
.PP
|
||||||
|
.I Cvs
|
||||||
|
.I diff
|
||||||
|
runs Unix's
|
||||||
|
.IR diff (1)
|
||||||
|
to compare files in the local tree with the corresponding files in
|
||||||
|
the CVS tree.
|
||||||
|
By default it compares against the version that was most recently
|
||||||
|
incorporated into the local tree.
|
||||||
|
The
|
||||||
|
.B -r
|
||||||
|
flag specifies an alternate version to compare against.
|
||||||
|
The special revision
|
||||||
|
.B HEAD
|
||||||
|
refers to the most recent version on the server.
|
||||||
|
The
|
||||||
|
.B -D
|
||||||
|
flag instructs
|
||||||
|
.I cvs
|
||||||
|
.I diff
|
||||||
|
to use the version as of the given date.
|
||||||
|
Almost any imaginable date format is acceptable:
|
||||||
|
.BR 20050110 ,
|
||||||
|
.BR 1/10/2005 ,
|
||||||
|
.B 'Jan
|
||||||
|
.BR 10' ,
|
||||||
|
.BR yesterday ,
|
||||||
|
.B 'last
|
||||||
|
.BR week ',
|
||||||
|
.B 'two
|
||||||
|
.B days
|
||||||
|
.BR ago' ,
|
||||||
|
.B 'a
|
||||||
|
.B fortnight
|
||||||
|
.BR ago ',
|
||||||
|
and so on.
|
||||||
|
If two
|
||||||
|
.B -r
|
||||||
|
or
|
||||||
|
.B -D
|
||||||
|
options are given,
|
||||||
|
those two versions are compared, and the local copy is ignored.
|
||||||
|
.PP
|
||||||
|
If you download a tar file from the web
|
||||||
|
instead of checking out the tree with CVS,
|
||||||
|
you can still use the
|
||||||
|
.I update
|
||||||
|
and
|
||||||
|
.I diff
|
||||||
|
commands to stay up-to-date and to see what has changed.
|
||||||
|
You will need to run the
|
||||||
|
.I cvs
|
||||||
|
.I login
|
||||||
|
command first to create your
|
||||||
|
.B .cvspass
|
||||||
|
file.
|
||||||
|
.SH EXAMPLES
|
||||||
|
Incorporate any changes made to the CVS tree since
|
||||||
|
the last check out or update:
|
||||||
|
.IP
|
||||||
|
.EX
|
||||||
|
cd $PLAN9
|
||||||
|
cvs up -dP
|
||||||
|
.EE
|
||||||
|
.PP
|
||||||
|
Compare
|
||||||
|
.IR libdraw (3)
|
||||||
|
against its source from January 1, 2005:
|
||||||
|
.IP
|
||||||
|
.EX
|
||||||
|
cd $PLAN9/src/libdraw
|
||||||
|
cvs diff -D20050101
|
||||||
|
.EE
|
||||||
|
.PP
|
||||||
|
Check the entire tree for changes made locally:
|
||||||
|
.IP
|
||||||
|
.EX
|
||||||
|
cd $PLAN9
|
||||||
|
cvs diff
|
||||||
|
.EE
|
||||||
|
.PP
|
||||||
|
Check the entire tree for changes between the local version and
|
||||||
|
the most recent in the CVS tree.
|
||||||
|
This does not indicate which changes are local ones
|
||||||
|
and which are changes to the CVS tree that have not yet been
|
||||||
|
incorporated into the local tree.
|
||||||
|
.IP
|
||||||
|
.EX
|
||||||
|
cd $PLAN9
|
||||||
|
cvs diff -r HEAD
|
||||||
|
.EE
|
||||||
|
.SH FILES
|
||||||
|
.TP
|
||||||
|
.B CVS
|
||||||
|
directory containing CVS metadata for parent
|
||||||
|
.TP
|
||||||
|
.B .cvsignore
|
||||||
|
list of files and wildcards to exclude from CVS operations in this directory
|
||||||
|
.SH SEE ALSO
|
||||||
|
Unix's
|
||||||
|
\fIcvs\fR(1).
|
||||||
|
.br
|
||||||
|
.B
|
||||||
|
.HR http://www.cvshome.org
|
||||||
|
.SH BUGS
|
||||||
|
The CVS server is a read-only public copy of a private tree.
|
||||||
|
The dates on versions reflect the date the changes were made in the
|
||||||
|
private tree, not the date the change was made public.
|
Loading…
Reference in a new issue