initial import of changes from 9front bikeshedding; bundle rc-httpd
This commit is contained in:
parent
6d3bcc867c
commit
a99fa8b44f
46 changed files with 1061 additions and 572 deletions
6
apps/wman/app.rc
Normal file → Executable file
6
apps/wman/app.rc
Normal file → Executable file
|
|
@ -71,7 +71,6 @@ fn wman_get_section_desc {
|
|||
|
||||
fn wman_page_gen {
|
||||
#troff -manhtml $1| troff2html -t 'Plan 9 from User Space'
|
||||
# Using GNU col here to remove nroffs garbage (eg., from .ft B); p9p has no col(1) :(
|
||||
troff -N -m$wman_tmac $1 | wman_out_filter
|
||||
}
|
||||
|
||||
|
|
@ -80,10 +79,11 @@ fn wman_out_filter {
|
|||
}
|
||||
|
||||
fn wman_default_out_filter {
|
||||
# Using GNU col here to remove nroffs garbage (eg., from .ft B); p9p has no col(1) :(
|
||||
escape_html \
|
||||
| sed 's!([\.\-a-zA-Z0-9]+)\(('^`{echo $wman_cat_list|tr ' ' '|'}^')\)!<a href="../\2/\1">&</a>!g' \
|
||||
| awk '/^$/ {if(n != 1) print; n=1; next} /./ {n=0; print}'
|
||||
|
||||
| awk '/^$/ {if(n != 1) print; n=1; next} /./ {n=0; print}' \
|
||||
| col -x
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue