mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Regenerate lookman index on install
Updates indices to reflect changes in the repository. Additionally rewrites file names in the indices according to PLAN9_TARGET variable.
This commit is contained in:
parent
93f8143600
commit
d953173530
3 changed files with 6 additions and 3 deletions
3
INSTALL
3
INSTALL
|
@ -183,6 +183,9 @@ if $doinstall; then
|
|||
echo "* NOT renaming hard-coded /usr/local/plan9 paths."
|
||||
echo "* NOT building web manual."
|
||||
else
|
||||
cd $PLAN9/man
|
||||
mk indices
|
||||
mk lookman.index
|
||||
echo "* Renaming hard-coded /usr/local/plan9 paths..."
|
||||
cd $PLAN9
|
||||
sh lib/moveplan9.sh
|
||||
|
|
|
@ -7,5 +7,5 @@ indices:V:
|
|||
done
|
||||
|
||||
lookman.index:V:
|
||||
./mkindex
|
||||
9 rc ./mkindex
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
# creates the index used by lookman
|
||||
>lookman.index
|
||||
for(i in $PLAN9/man/man[0-9]*/[a-z0-9:]*.[0-9]*){
|
||||
for(i in 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
|
||||
sed 's@$@ '$PLAN9_TARGET/man/$i'@' >>lookman.index # stick file name on end of line
|
||||
}
|
||||
sort -o lookman.index lookman.index
|
||||
|
|
Loading…
Reference in a new issue