diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
commit | e463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch) | |
tree | d5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/man/secindex | |
parent | b41b9034225ab3e49980d9de55c141011b6383b0 (diff) |
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/man/secindex')
-rwxr-xr-x | sys/lib/man/secindex | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/lib/man/secindex b/sys/lib/man/secindex new file mode 100755 index 000000000..2d4b7dce9 --- /dev/null +++ b/sys/lib/man/secindex @@ -0,0 +1,36 @@ +#!/bin/rc +builtin cd $1 +for (i in [a-z0-9:]*) { + sed -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 $i $i +} |sort -u |