forked from 9fans/9fans.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
6,622 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This directory contains scripts and files that help to run the distribution. | ||
|
||
mk check.out | ||
summarizes problems with the man pages. | ||
|
||
mk man | ||
recreates the HTML version of the man pages | ||
|
||
mk push | ||
copies the HTML pages to 9fans.github.io | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env perl | ||
|
||
@_ = <>; | ||
my $root = $ENV{'PLAN9'}; | ||
my $html = join("", @_); | ||
$html =~ s;$root/;XXX$root/;g; | ||
$newhtml = ""; | ||
while($html =~ /XXX($root\/([a-zA-Z0-9_.\/]|−)*[a-zA-Z0-9_\/])/){ | ||
($a, $b, $c) = ($`, $1, $'); | ||
$b =~ s/−/-/g; | ||
$l = $b; | ||
while(! -e $l){ | ||
if($l =~ /(.*\/)(.+)/){ | ||
$l = $1; | ||
}else{ | ||
last; | ||
} | ||
} | ||
$bb = substr($b, length($l)); | ||
$b = $l; | ||
$b =~ s/-/\−/g; | ||
$bb =~ s/-/\−/g; | ||
$newhtml .= "$a<a href=\"$l\">$b</a>$bb"; | ||
$html = $c; | ||
} | ||
$newhtml .= $html; | ||
print $newhtml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# run this in the src directory | ||
. ../src/mkenv | ||
export SYSNAME INSTALL | ||
sh -x mkmk.sh |
Oops, something went wrong.