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/mksearchindex | |
parent | b41b9034225ab3e49980d9de55c141011b6383b0 (diff) |
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/man/mksearchindex')
-rwxr-xr-x | sys/lib/man/mksearchindex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/lib/man/mksearchindex b/sys/lib/man/mksearchindex new file mode 100755 index 000000000..c80a516df --- /dev/null +++ b/sys/lib/man/mksearchindex @@ -0,0 +1,5 @@ +#!/bin/rc +awk ' + { if($2 in a) a[$2] = a[$2] " " $1; else a[$2] = $1; } + END { for(i in a) print " " a[i] " " i; } +'< /sys/lib/man/lookman/index |sed 's/ \/sys\/man\/(.*)\/(.*)/ \2 \1\/\2/' | sort |