Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate lookman index on install #571

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion man/mkfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ indices:V:
done

lookman.index:V:
./mkindex
9 rc ./mkindex

4 changes: 2 additions & 2 deletions man/mkindex
Original file line number Diff line number Diff line change
Expand Up @@ -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