all: update site from swtch.com to 9fans.github.io

This commit is contained in:
Russ Cox 2017-09-01 13:16:43 -04:00
parent 6cb3a2b9c3
commit a399388593
26 changed files with 83 additions and 52 deletions

3
dist/README vendored
View file

@ -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

19
dist/main.html vendored
View file

@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
-->
<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,9 +32,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
|
<a href="/usr/local/plan9/">browse</a>
|
<a href="man/man1/hg.html">hg</a>
|
<a href="http://code.swtch.com/plan9port">hgweb</a>
<a href="https://github.com/9fans/plan9port">github</a>
|
<a href="unix/">unix</a>
|
@ -76,9 +74,10 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
<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 cellpadding=0 width=100%/g
<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 cellpadding=0 width=100%/g
<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 cellpadding=0 width=100%/g
<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.

View file

@ -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>

7
dist/mkdirlist vendored Executable file
View file

@ -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>'

7
dist/mkfile vendored
View file

@ -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

29
dist/publish vendored Executable file
View file

@ -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
}

4
dist/ss.html vendored
View file

@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
-->
<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 cellpadding=0 width=100%/g
</table>
</center>
<!--
<center>
<font size=-1>
Submissions welcomed.
@ -108,6 +109,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
(<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>

2
dist/unix.html vendored
View file

@ -6,7 +6,7 @@ Edit ./^$/,s/<Table/<table border=0 cellspacing=0 cellpadding=0 width=100%/g
-->
<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>