aboutsummaryrefslogtreecommitdiff
path: root/man/secindex
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-03 06:41:38 +0000
committerrsc <devnull@localhost>2005-01-03 06:41:38 +0000
commita19c44b83b96fefad131ef324c3eb2916e8c604c (patch)
tree9fee0b867751c0b9fe63a2763067c2e37403a866 /man/secindex
parent058b0118a52061ad57694c01fc8763b22b789c4d (diff)
downloadplan9port-a19c44b83b96fefad131ef324c3eb2916e8c604c.tar.gz
plan9port-a19c44b83b96fefad131ef324c3eb2916e8c604c.tar.bz2
plan9port-a19c44b83b96fefad131ef324c3eb2916e8c604c.zip
Add mkfile to keep indices up to date.
Remove man pages for things we don't provide.
Diffstat (limited to 'man/secindex')
-rwxr-xr-xman/secindex37
1 files changed, 37 insertions, 0 deletions
diff --git a/man/secindex b/man/secindex
new file mode 100755
index 00000000..6dd0d51e
--- /dev/null
+++ b/man/secindex
@@ -0,0 +1,37 @@
+#!/usr/local/plan9/bin/rc
+builtin cd $1
+for (i in [a-z0-9:]*) {
+ b=`{echo $i | sed 's/\..*//'}
+ 9sed -n '
+ /SH *NAM/,/SH/{
+ /SH/d
+ s/, *$//
+ ty
+ :y
+ s/ *\\*-.*//
+ tx
+ s/ *\\\(mi.*//
+ tx
+ s/, */\
+/g
+ s/\n\\n/\
+/g
+ s/$/ '$i'/g
+ p
+ }
+ /SH *DES/q
+ d
+ :x
+ s/ *\\*-.*//
+ s/ *\\\(mi.*//
+ /^$/d
+ s/, */\
+/g
+ s/\n\n/\
+/g
+ s/$/ '$i'/g
+ p
+ q
+' $i
+echo $b $i
+} |sort -u