From d95317353047556a54a2a350577c94525620dfd5 Mon Sep 17 00:00:00 2001 From: mmnmnnmnmm Date: Tue, 16 Aug 2022 18:27:05 +0100 Subject: [PATCH] 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. --- INSTALL | 3 +++ man/mkfile | 2 +- man/mkindex | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index 2e79030ae..ad719de77 100755 --- a/INSTALL +++ b/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 diff --git a/man/mkfile b/man/mkfile index a1ba97b67..f136e7e09 100644 --- a/man/mkfile +++ b/man/mkfile @@ -7,5 +7,5 @@ indices:V: done lookman.index:V: - ./mkindex + 9 rc ./mkindex diff --git a/man/mkindex b/man/mkindex index 543bf1a56..a664252d7 100755 --- a/man/mkindex +++ b/man/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