Commit Diff


commit - 6cb3a2b9c3cf191c613985fc893c8a88a9b6d76f
commit + a39938859387987d5aac6201600154a68fad7c40
blob - 8f123b8542f2e18bf71c40f3e4709aecf61d7b03
blob + 4673056b56bae0befdecac5ebd0a2bb5ab566e49
--- INSTALL
+++ INSTALL
@@ -34,9 +34,9 @@ SunOS)
 	;;
 esac
 
-echo "+ Mailing list: http://groups.google.com/group/plan9port-dev"
-echo "+ Issue tracker: http://code.swtch.com/plan9port/issues/"
-echo "+ Submitting changes: http://swtch.com/go/codereview"
+echo "+ Mailing list: https://groups.google.com/group/plan9port-dev"
+echo "+ Issue tracker: https://github.com/9fans/plan9port/issues/"
+echo "+ Submitting changes: https://github.com/9fans/plan9port/pulls"
 echo " "
 echo "* Resetting $PLAN9/config"
 rm -f config
blob - eaa28d0de594614e17e59bc3ac8b8e19163cdd12
blob + ba27e51e0c7fbab058d71e2fb40967e6121ba170
--- dist/README
+++ dist/README
@@ -7,5 +7,6 @@ mk man
 	recreates the HTML version of the man pages
 
 mk push
-	copies the HTML pages to swtch.com
+	copies the HTML pages to 9fans.github.io
 
+
blob - 47f8b1e0a43e67df8a9b497bab4adfff1af4d4a6
blob + f0b519113458e07ed897db6a4163a07b54365cc9
--- dist/main.html
+++ dist/main.html
@@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
 -->
 
 <head>
-<base href="http://swtch.com/plan9port/">
+<base href="https://9fans.github.io/plan9port/">
 <title>Plan 9 from User Space</title>
 </head>
 <body bgcolor=#ffffff>
@@ -32,10 +32,8 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
       |
       <a href="/usr/local/plan9/">browse</a>
       |
-      <a href="man/man1/hg.html">hg</a>
+      <a href="https://github.com/9fans/plan9port">github</a>
       |
-      <a href="http://code.swtch.com/plan9port">hgweb</a>
-      |
       <a href="unix/">unix</a>
       |
       <a href="http://webhostinggeeks.com/science/plan9port-be">Belorussian</a>
@@ -76,9 +74,10 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
     <table border=0 cellspacing=0 cellpadding=0 width=100%>
       <tr height=10><td width=20><td>
       <tr><td><td>
-        latest tree: <a href="plan9port.tgz">plan9port.tgz</a>
-        <font size=-1>(<a href="/cgi-bin/info.cgi?file=/plan9port/plan9port.tgz">date and checksums</a>;
-          <a href="http://code.swtch.com/plan9port/commits/all">list of recent changes</a>;
+        using git: <code>git clone https://github.com/9fans/plan9port plan9</code>
+        <p>
+        latest tree: <a href="https://github.com/9fans/plan9port/archive/master.zip">plan9port-master.zip</a>
+        <font size=-1>(<a href="https://github.com/9fans/plan9port/commits/master">list of recent changes</a>;
           <a href="/usr/local/plan9/LICENSE">license</a>)</font>
         <br>
     </table>
@@ -146,7 +145,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
       <tr height=10><td width=20><td>
       <tr><td><td>
         mailing list <font size=-1>(<a href="http://groups.google.com/group/plan9port-dev">plan9port-dev on Google groups</a>)</font><br />
-        issue tracker <font size=-1>(<a href="http://code.swtch.com/plan9port/issues/">http://code.swtch.com/plan9port/issues/</a>)</font><br />
+        issue tracker <font size=-1>(<a href="https://github.com/9fans/plan9port/issues">https://github.com/9fans/plan9port/issues</a>)</font><br />
         Russ Cox <font size=-1>(<a href="mailto:rsc@swtch.com">rsc@swtch.com</a>)</font><br />
     </table>
 
@@ -161,7 +160,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
 
         <table border=0 cellspacing=0 cellpadding=0 width=100%><tr height=10><td></table>
 
-        See <a href="http://swtch.com/plan9port/unix/">http://swtch.com/plan9port/unix/</a>.
+        See <a href="/plan9port/unix/">https://9fans.github.io/plan9port/unix/</a>.
     </table>
 
     <table border=0 cellspacing=0 cellpadding=0 width=100%><tr height=20><td></table>
@@ -169,7 +168,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
     <table border=0 cellspacing=0 cellpadding=0 width=100%>
       <tr height=10><td width=20><td>
       <tr><td><td>
-        <a href="http://swtch.com/usr/local/plan9/9pm/README">
+        <a href="https://9fans.github.io/usr/local/plan9/9pm/README">
           An early version
         </a>
         of Plan 9 from User Space for Windows.  Only for reference.
blob - 0d49cdc297a79ccfbf9183641f7660b66c2b62e0
blob + f2139004242fb1f844c36be0b88dd8646d379ce9
--- dist/mantrailer.html
+++ dist/mantrailer.html
@@ -2,6 +2,6 @@
 <tr height=15><td width=10><td><td width=10>
 <tr><td><td>
 <center>
-<a href="http://swtch.com/plan9port/"><img src="../../dist/glendacircle.png" alt="Space Glenda" border=0></a>
+<a href="https://9fans.github.io/plan9port/"><img src="../../dist/glendacircle.png" alt="Space Glenda" border=0></a>
 </center>
 </table>
blob - e060714622a547eb2bcd7f9c66963ad479755ea9
blob + bbc431e0bc8d86a1b767bbdb304b8844ed3418be
--- dist/mkfile
+++ dist/mkfile
@@ -9,9 +9,4 @@ man:V:
 	9 rc ./manweb
 
 push:V:
-	gsutil -m rsync -r -d $PLAN9/man gs://swtch/www/plan9port/man
-	gsutil cp unix.html gs://swtch/www/plan9port/unix/index.html
-	gsutil cp main.html gs://swtch/www/plan9port/index.html
-	gsutil cp ss.html gs://swtch/www/plan9port/screenshots/index.html
-	# @{cd ../unix/man && mk push}
-	# @{cd ../unix && mk push}
+	9 rc ./publish
blob - /dev/null
blob + 8f43fc8a2a6fad36daa2d2e1af3437e0df432150 (mode 755)
--- /dev/null
+++ dist/mkdirlist
@@ -0,0 +1,7 @@
+#!/usr/local/plan9/bin/rc
+
+echo '<pre>'
+echo '<a href="/plan9port">Plan 9 from User Space</a> '$2
+echo
+@{cd $1; 9 ls -lF} | 9 sed 's!^(.-......... M 0 )[^ ]+ [^ ]+ (.*) (.*[^*])!\1 glenda sys \2 <a href='\3'>\3</a>!'
+echo '</pre>'
blob - 92076848040263ced59dc53412035696b6cc85b3
blob + 5ef2fd1dd46c2877aa53c7f01e918f9ac83521fe
--- dist/ss.html
+++ dist/ss.html
@@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
 -->
 
 <head>
-<base href="http://swtch.com/plan9port/screenshots/">
+<base href="https://9fans.github.io/plan9port/screenshots/">
 <title>Plan 9 from User Space - Screen Shots</title>
 </head>
 <body bgcolor=#ffffff>
@@ -101,6 +101,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
       </table>
     </center>
 
+    <!--
     <center>
     <font size=-1>
       Submissions welcomed.
@@ -108,6 +109,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
       (<a href="mailto:rsc@swtch.com">rsc@swtch.com</a>).
     </font>
     </center>
+    -->
     
   <tr height=20><td>
   <tr><td><td><center><a href=".."><img src="../dist/spaceglenda100.png" border=1 alt="Space Glenda"></a></center>
blob - /dev/null
blob + bfad7cae17438406fa22fd059e6f2ebdea9af9d4 (mode 755)
--- /dev/null
+++ dist/publish
@@ -0,0 +1,29 @@
+#!/usr/local/plan9/bin/rc
+
+dir=$9fansweb
+if (~ $#dir 0) {
+	dir=$home^/pub/9fans.github.io
+	9fansweb=$dir
+}
+
+root=$dir/plan9port
+if (! test -d $root) {
+	echo $root does not exist >[1=2]
+	exit bad
+}
+
+rm -rf $root/man
+cp -a ../man $root/man
+mkdir -p $root/unix
+cp unix.html $root/unix/index.html
+cp main.html $root/index.html
+cp ss.html $root/screenshots/index.html
+@{cd ../unix/man && mk push}
+@{cd ../unix && mk push}
+
+rm -rf $root/../usr/local/plan9
+mkdir -p $root/../usr/local/plan9
+git archive HEAD | @{cd $root/../usr/local/plan9 && u tar xf -}
+for(d in `{find $root/../usr/local/plan9 -type d}) {
+	9 rc ./mkdirlist $d `{echo $d | sed 's;.*/usr;/usr;'} >t1 && mv t1 $d/index.html
+}
blob - dc95c3d8a6a0d76258bb134fe5118fc22865e4ac
blob + 0e8394c26e88fd636153a2258f41fa15eab74988
--- dist/unix.html
+++ dist/unix.html
@@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cell
 -->
 
 <head>
-<base href="http://swtch.com/plan9port/unix/">
+<base href="https://9fans.github.io/plan9port/unix/">
 <title>Unix Software from Plan 9</title>
 </head>
 <body bgcolor=#ffffff>
blob - b7e111f5aca1230e004ba497d47d14a0399929c3
blob + 9b29b5121a36e988eefa73c3a8ff65c73144a741
--- man/man1/git.1
+++ man/man1/git.1
@@ -1,10 +1,10 @@
 .TH GIT 1
 .SH NAME 
-git, hg, cvs \- introduction to using plan9port Git repository
+git, hg, cvs, codereview \- introduction to using plan9port Git repository
 .SH SYNOPSIS
 .B git
 .B clone
-.B http://code.swtch.com/plan9port
+.B https://9fans.github.io/plan9port
 .B plan9
 .PP
 .B git
@@ -20,12 +20,10 @@ git, hg, cvs \- introduction to using plan9port Git re
 .B gitk 
 .PP
 .B web
-.B http://code.swtch.com/plan9port
+.B https://9fans.github.io/plan9port
 .SH DESCRIPTION
 The master source tree for Plan 9 from User Space is maintained
-using the source control system Git
-as a substitute for Plan 9's
-\fIreplica\fR(8) and dump file system.
+using the source control system Git.
 .PP
 The first argument to
 .I git
@@ -68,7 +66,7 @@ refers to the most recent version in the version histo
 starts an interactive history viewer.
 .PP
 The Git tree can be inspected on the web at
-.HR http://code.swtch.com/plan9port/ "" .
+.HR https://github.com/9fans/plan9port "" .
 .SH FILES
 .TP
 .B \*9/.git
@@ -77,13 +75,11 @@ directory containing Git local repository
 .B .gitignore
 list of files and wildcards to exclude from Git operations
 .SH SEE ALSO
-.IR codereview (1)
-.PP
 Unix's
 \fIgit\fR(1),
 .HR http://git-scm.com/doc
 .PP
-.HR http://code.swtch.com/plan9port/
+.HR https://9fans.github.io/plan9port/
 .SH BUGS
 Plan 9 from User Space is no longer accessible using CVS or Mercurial;
 you must use Git.
blob - 574bdc5c6fbbec19f4798690f739ddece8b692d8
blob + be35bd35414877b03a47673dff5c319c51ba8dc7
--- man/man1/install.1
+++ man/man1/install.1
@@ -17,7 +17,7 @@ To obtain the Plan 9 tree, use Git
 (see
 .IR git (1))
 or download a tar file from
-.HR http://swtch.com/plan9port "" .
+.HR https://9fans.github.io/plan9port "" .
 .PP
 The tree can be unpacked anywhere, but the
 usual place is
blob - bcf46126a659cfd23dd50d89aca3f6b38dca6498
blob + e3efb50d98eeefa622821f8a76a8cb6c5d1ad116
--- src/cmd/awk/README
+++ src/cmd/awk/README
@@ -6,7 +6,7 @@ as such, it's copyright is held by Lucent Technologies
 Lucent Public License version 1.02 [http://www.opensource.org/licenses/lucent1.02.php].
 
 Modifications were made by Jeff Sickel in order to build using Plan 9 from User
-Space [http://swtch.com/plan9port/] to the following files:
+Space [https://9fans.github.io/plan9port/] to the following files:
 
     mkfile
     re.c
blob - 602ee26280b39709a3861b293e847cdfb0c9ef80
blob + 827982ec8afcf2ed85844a440dba3b952fc4e1c8
--- unix/README
+++ unix/README
@@ -1,5 +1,5 @@
 This software was packaged for Unix by Russ Cox.
 Please send comments to rsc@swtch.com.
 
-http://swtch.com/plan9port/unix
+https://9fans.github.io/plan9port/unix
 
blob - 3b8da2fa9735731da240e775aab6eb0ed9874c77
blob + 0bc06e151ef41af2a323dd8a3b16c71aa7b611ad
--- unix/man/bio.3
+++ unix/man/bio.3
@@ -321,7 +321,7 @@ When reading, this is the number of bytes still availa
 read on the file; when writing, it is the number of bytes ready to be
 written.
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR open (2),
 .IR print (3),
blob - e058b147575830ab4744e1d705d14f6d8f58049f
blob + 8c3484778e01c08797bf3cdb39b65dcb80f98e72
--- unix/man/fixurls
+++ unix/man/fixurls
@@ -24,7 +24,7 @@ for($i=0; $i<@ARGV; $i++){
 	}
 
 	$text =~ s!../man(.)/([^.]*)\.html!$2$1.html!g;
-	$text =~ s!(http://swtch.com/plan9port/unix)!<a href="\1">\1</a>!g;
+	$text =~ s!(https://9fans.github.io/plan9port/unix)!<a href="\1">\1</a>!g;
 
 	open(OUT, ">$ARGV[$i]") || die "open $ARGV[$i]: $!";
 	print OUT $text;
blob - 13007d2ad7640b2f976a89af7b2f2a1c5c60aa75
blob + ccca7fba44c030e0f4ba587166ff67505c9fcfe4
--- unix/man/fmtinstall.3
+++ unix/man/fmtinstall.3
@@ -362,7 +362,7 @@ main(...)
 }
 .EE
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR print (3),
 .IR utf (7)
blob - e2b1caefcdd2db11778f4b7a7ce9216b941698b7
blob + c3894124e16e1238d1ac2805d0387508fc771a5d
--- unix/man/fmtstrtod.3
+++ unix/man/fmtstrtod.3
@@ -44,7 +44,7 @@ Therefore, it may be necessary to back up the input st
 after calling
 .IR fmtcharstod .
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR fscanf (3)
 .SH DIAGNOSTICS
blob - ecad654c081b5da537fad57b58a0f86f2a8131fd
blob + 522e82b886cb384ac47a63253b06f9d0affa84e4
--- unix/man/isalpharune.3
+++ unix/man/isalpharune.3
@@ -43,7 +43,7 @@ The names are self-explanatory.
 .PP
 The case-conversion routines return the character unchanged if it has no case.
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH "SEE ALSO
 .IR isalpha (3) ,
 .IR "The Unicode Standard" .
blob - b1eb25f51707d77230887c63b7e23f4ab290b6f3
blob + abc8d6694272e63bd01735110b32d0eab16f14b8
--- unix/man/mk.1
+++ unix/man/mk.1
@@ -648,7 +648,7 @@ x.tab.h:Pcmp -s:	y.tab.h
 	cp y.tab.h x.tab.h
 .EE
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR sh (1),
 .IR regexp9 (7)
blob - 918aff8aea036640bac6286ffdf3b62d5baf0524
blob + b80e2e18639cd7327e61442be66715f86175f611
--- unix/man/mkfile
+++ unix/man/mkfile
@@ -31,4 +31,4 @@ MKSHELL=$PLAN9/bin/rc
 	./fixurls $target
 
 push:V:
-	rsync -e ssh -t *.html swtch:www/swtch.com/plan9port/unix/man
+	cp *.html $9fansweb/plan9port/unix/man
blob - 062413981f89e4832a2edd644303d87fc6709db1
blob + f96df06e69a42f6aa8ffbe253a3142ca684bd39b
--- unix/man/print.3
+++ unix/man/print.3
@@ -426,7 +426,7 @@ void fatal(char *msg, ...)
 }
 .EE
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR fmtinstall (3),
 .IR fprintf (3),
blob - dfeb25972c35a3ae7f5f089cf9b0d031710153de
blob + 63f99bbb0e414ab7189751092a1e8eba3d9462fa
--- unix/man/quote.3
+++ unix/man/quote.3
@@ -143,7 +143,7 @@ for example
 the printed string will always be quoted; otherwise quotes will only be provided if necessary
 to avoid ambiguity.
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH "SEE ALSO
 .IR rc (1),
 .IR malloc (3),
blob - ce9de14c569c9d6c70f692280cc5bab6426829a4
blob + 96ee03c398ab3820af6542db5336629d12787d6e
--- unix/man/regexp9.3
+++ unix/man/regexp9.3
@@ -194,7 +194,7 @@ fields of the
 .I match
 array elements should be used.
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH "SEE ALSO"
 .IR grep (1)
 .SH DIAGNOSTICS
blob - 36873db9d82b82f0ae13d6cb05c14e73a7dd48a9
blob + 4e3b44a27964d4260a4c16a3c53ce674ef80f17e
--- unix/man/rune.3
+++ unix/man/rune.3
@@ -180,7 +180,7 @@ is the null string,
 returns
 .IR s1 .
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR utf (7),
 .IR tcs (1)
blob - 31db54f30e751c835f475c0fc00b334e46cf0ea6
blob + d338f6be9199e9b0a96e293d302c0a10c5f9bf7e
--- unix/man/runestrcat.3
+++ unix/man/runestrcat.3
@@ -58,7 +58,7 @@ These functions are rune string analogues of
 the corresponding functions in 
 .IR strcat (3).
 .SH SOURCE
-.B http://swtch.com/plan9port/unix
+.B https://9fans.github.io/plan9port/unix
 .SH SEE ALSO
 .IR rune (3),
 .IR strcat (3)
blob - d05b297c99c64ddefe161c01d5b33b5286683c14
blob + 245ea2ed8bbac10f1cfad83715b5614a97c96ae7
--- unix/mkfile
+++ unix/mkfile
@@ -64,7 +64,9 @@ mk-with-libs.tgz:V:
 
 tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz
 
-push:
-	rsync -e ssh -t *.tgz swtch.com:www/swtch.com/plan9port/unix
-	ssh swtch.com rm -f www/swtch.com/plan9port/unix/*.sha1 \
-		www/swtch.com/plan9port/unix/*.md5
+push:V:
+	rm -f *.sha1 *.md5 *.sha256
+	for (i in *.tgz)
+		sha1sum $i >$i.sha1
+	cp *.tgz $9fansweb/plan9port/unix
+	cp *.tgz.sha1 $9fansweb/plan9port/unix