diff options
author | rsc <devnull@localhost> | 2005-01-14 20:12:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-14 20:12:19 +0000 |
commit | 638f5c0d2fde7dcab1ac7d91d6b09e8c14a2a815 (patch) | |
tree | be21678ef62bd4e8878c781f1febae24dd9d979f /man/mkindex | |
parent | 732489da903809b3e7ecbcad6f42d74edff075ad (diff) | |
download | plan9port-638f5c0d2fde7dcab1ac7d91d6b09e8c14a2a815.tar.gz plan9port-638f5c0d2fde7dcab1ac7d91d6b09e8c14a2a815.tar.bz2 plan9port-638f5c0d2fde7dcab1ac7d91d6b09e8c14a2a815.zip |
add index
Diffstat (limited to 'man/mkindex')
-rwxr-xr-x | man/mkindex | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man/mkindex b/man/mkindex new file mode 100755 index 00000000..543bf1a5 --- /dev/null +++ b/man/mkindex @@ -0,0 +1,14 @@ +#!/usr/local/plan9/bin/rc + +. 9.rc + +# creates the index used by lookman +>lookman.index +for(i in $PLAN9/man/man[0-9]*/[a-z0-9:]*.[0-9]*){ + deroff -w_ < $i | + tr 'A-Z' 'a-z' | + sort -u | + comm -23 - junkwords | + sed 's@$@ '$i'@' >>lookman.index # stick file name on end of line +} +sort -o lookman.index lookman.index |