Commit Diff


commit - 359c1e017ee367c34b082b1b4e6c002686d01bce
commit + 67075c3634c316ce9cc0e6fa88e65ca27503abc4
blob - /dev/null
blob + 1fb75d23127708d80881584bc7425215332ecdb7 (mode 755)
--- /dev/null
+++ bin/9.rc
@@ -0,0 +1,7 @@
+#!/usr/local/plan9/bin/rc
+
+PLAN9=/usr/local/plan9
+if(! ~ $path(1) $PLAN9/bin)
+	path=($PLAN9/bin $path)
+
+! ~ $#* 0 && exec $*
blob - dd4e042da5ea517b4a7675a420ce100dea935064
blob + 89d1a5a766bf8944e8a587c11eb53a472fe222e6
--- bin/man
+++ bin/man
@@ -1,5 +1,8 @@
 #!/usr/local/plan9/bin/rc
 
+. 9.rc
+whatis path
+whatis troff
 . $PLAN9/man/fonts
 
 #
@@ -22,6 +25,7 @@ fn roff {
 		preproc=($preproc eqn)
 	if(~ $x *tbl*)
 		preproc=($preproc tbl)
+
 	switch($#preproc) {
 		case 0
 			{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN 
@@ -39,7 +43,7 @@ fn roff {
 fn doecho { echo $1 }
 fn dotroff { roff t $1 }
 fn doproof { roff t $1 | proof }
-fn dopage { roff t $1 | page }
+fn dopage { roff t $1 | tr2post | psfonts | page }
 fn donroff {
 	roff n $1 | sed '
 		${
@@ -62,19 +66,12 @@ fn dohtml {
 	}
 }
 
-
 #
-# setup 
-# 
-if(! ~ $path(1) $PLAN9/bin)
-	path=($PLAN9/bin $path)
+# parse flags and sections
+#
 cmd=donroff
 sec=()
 S=$PLAN9/man
-
-#
-# parse flags and sections
-#
 d=0
 while(~ $d 0) {
 	if(~ $#* 0) {
blob - d654a7e80446ce94b5b620ccac935df3399199a7
blob + 8b85e5599d5727cb2b57858509b227183349e5dc
--- bin/page
+++ bin/page
@@ -81,7 +81,7 @@ case $# in
 		tmp=$tmp.png
 		;;
 	*)
-		echo 1>&2 unrecognized file format
+		echo 1>&2 page: unrecognized file type on standard input
 		rm -f $tmp
 		exit 1
 	esac
blob - 24ce0226ee00db6f0d6029157f296a49651d4a97
blob + 80d5470505d973a4af7ed9d56368c919bc9553c5
--- man/man1/9.1
+++ man/man1/9.1
@@ -1,6 +1,6 @@
 .TH 9 1
 .SH NAME
-9 \- run Plan 9 commands
+9, 9.rc \- run Plan 9 commands
 .SH SYNOPSIS
 .B 9
 .I cmd
@@ -11,6 +11,20 @@
 .PP
 .B .
 .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
 Because Plan 9 supplies commands with the same name as but different
 behavior than many basic Unix system commands
@@ -42,6 +56,12 @@ shells using
 .B .
 .B 9
 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
 Search for greek in the password file:
 .IP
@@ -58,5 +78,7 @@ with the Plan 9 commands in the path before the system
 .EE
 .SH SOURCE
 .B \*9/bin/9
+.br
+.B \*9/bin/9.rc
 .SH SEE ALSO
 .IR intro (1)
blob - /dev/null
blob + cb0cec69266d2d1aa17645e47489068b8e86d7d7 (mode 644)
--- /dev/null
+++ man/man1/cvs.1
@@ -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.