URI: 
       tremove references to hardcoded /usr/local/plan9 where possible - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 2c500adda28bdf7187de272a50fc1f37fe467160
   DIR parent b8f742db850ffc99333a97ab54fc820c6de0fd98
  HTML Author: rsc <devnull@localhost>
       Date:   Tue, 11 Jan 2005 17:49:03 +0000
       
       remove references to hardcoded /usr/local/plan9 where possible
       
       Diffstat:
         M bin/"                               |       2 +-
         M bin/""                              |       2 +-
         M bin/Getdir                          |       2 +-
         M bin/adict                           |       2 +-
         M bin/doctype                         |       2 +-
         M bin/g                               |      48 +++++++++++++++++++++----------
         M bin/lookman                         |       6 +++---
         M bin/spell                           |       2 +-
         M bin/src                             |       2 +-
         M bin/start                           |       2 +-
         M bin/stop                            |       2 +-
       
       11 files changed, 45 insertions(+), 27 deletions(-)
       ---
   DIR diff --git a/bin/" b/bin/"
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        fn text {
                if(~ $winid [0-9]*)
   DIR diff --git a/bin/"" b/bin/""
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        PROMPT='[^         ]*[%;$#][         ]+'
        
   DIR diff --git a/bin/Getdir b/bin/Getdir
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        # Click on an acme directory window and then execute Getdir
        
   DIR diff --git a/bin/adict b/bin/adict
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        . $PLAN9/lib/acme.rc
        
   DIR diff --git a/bin/doctype b/bin/doctype
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        # doctype:  synthesize proper command line for troff
        
        troff=troff
   DIR diff --git a/bin/g b/bin/g
       t@@ -1,19 +1,37 @@
       -#!/usr/local/plan9/bin/rc
       +#!/bin/sh
        
       -flags=()
       -while(! ~ $#* 1 && ~ $1 -*){
       -        flags=($flags $1)
       -        shift
       -}
       +inflags=yes
       +flags=""
       +while [ $# != 0 -a $inflags = yes ]
       +do
       +        case "$1" in
       +        -*)
       +                flags="$flags $1"
       +                shift
       +                ;;
       +        -)
       +                inflags=no
       +                shift
       +                ;;
       +        *)
       +                inflags=no
       +                ;;
       +        esac
       +done
        
       -switch($#*){
       -case 0
       -        echo 'usage: g [flags] pattern [files]' >[1=2]
       +case $# in
       +0)
       +        echo 1>&2 'usage: g [flags] pattern [files]'
                exit 1
       -case 1
       -        9grep -n $flags -- $1 *.[Cbchm] *.cc *.py *.tex *.ms *.java /dev/null \
       -          |[2] {9grep -v '^(grep: can''t open \*|grep: \*\.)' >[1=2]; status=0}
       -case *
       -        9grep -n $flags -- $* /dev/null
       -}
       +        ;;
       +1)
       +        pattern="$1"
       +        files=`/bin/ls *.[bcChm] *.cc *.py *.tex *.ms *.java 2>/dev/null`
       +        ;;
       +*)
       +        pattern="$1"
       +        shift
       +        files="$@"
       +esac
        
       +exec grep -n $flags -- "$pattern" $files /dev/null
   DIR diff --git a/bin/lookman b/bin/lookman
       t@@ -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{
       t@@ -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
   DIR diff --git a/bin/spell b/bin/spell
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        spellflags=()
        deroffargs=()
   DIR diff --git a/bin/src b/bin/src
       t@@ -1,4 +1,4 @@
       -#!/usr/local/plan9/bin/rc
       +#!/usr/bin/env $PLAN9/bin/rc
        
        sym = 'threadmain?z
                p9main?z
   DIR diff --git a/bin/start b/bin/start
       t@@ -1,3 +1,3 @@
        #!/bin/sh
        
       -exec /usr/local/plan9/bin/kill -CONT "$@"
       +exec $PLAN9/bin/kill -CONT "$@"
   DIR diff --git a/bin/stop b/bin/stop
       t@@ -1,3 +1,3 @@
        #!/bin/sh
        
       -exec /usr/local/plan9/bin/kill -STOP "$@"
       +exec $PLAN9/bin/kill -STOP "$@"