aboutsummaryrefslogtreecommitdiff
path: root/bin/lookman
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-11 17:49:03 +0000
committerrsc <devnull@localhost>2005-01-11 17:49:03 +0000
commit2c500adda28bdf7187de272a50fc1f37fe467160 (patch)
tree9da3b42fa5431d7b504d6eb5a440ec5399a37ab3 /bin/lookman
parentb8f742db850ffc99333a97ab54fc820c6de0fd98 (diff)
downloadplan9port-2c500adda28bdf7187de272a50fc1f37fe467160.tar.gz
plan9port-2c500adda28bdf7187de272a50fc1f37fe467160.tar.bz2
plan9port-2c500adda28bdf7187de272a50fc1f37fe467160.zip
remove references to hardcoded /usr/local/plan9 where possible
Diffstat (limited to 'bin/lookman')
-rwxr-xr-xbin/lookman6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/lookman b/bin/lookman
index 57e8d3cc..12223be8 100755
--- a/bin/lookman
+++ b/bin/lookman
@@ -1,7 +1,7 @@
-#!/usr/local/plan9/bin/rc
+#!/usr/bin/env $PLAN9/bin/rc
# Usage: lookman key ...
# prints out the names of all manual pages containing all the given keywords
-index=/usr/local/plan9/man/lookman.index
+index=$PLAN9/man/lookman.index
t1=/tmp/look1.$pid
t2=/tmp/look2.$pid
fn sigexit sigint sighup sigterm{
@@ -24,7 +24,7 @@ for(i in $*){
' > $t2
mv $t2 $t1
}
-sort $t1 | sed 's;/usr/local/plan9/man/man[0-9]*/;;
+sort $t1 | sed 's;/.*/man/man[0-9]*/;;
s;(.*)\.(.*);man \2 \1 # \1(\2);'
rm -f $t1 $t2
exit 0