3 PLAN9=`pwd` export PLAN9
4 PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH
6 echo "Resetting $PLAN9/config"
10 if [ `uname` = Linux ]; then
11 # On Linux, we use the kernel version to decide whether
12 # to use pthreads or not. On 2.6 versions that aren't
13 # linking with NPTL by default, pretend to be an older kernel.
14 echo "Running on Linux: checking for NPTL..."
15 gcc lib/linux-isnptl.c -lpthread
19 echo "SYSVERSION=2.6.x" >$PLAN9/config
21 echo " NPTL not found."
22 echo "SYSVERSION=2.4.x" >$PLAN9/config
27 if [ -f LOCAL.config ]; then
28 echo Using LOCAL.config options:
29 sed 's/^/ /' LOCAL.config
30 cat LOCAL.config >>config
36 echo "Building everything..."
40 echo "Installing everything..."
44 echo "Renaming hard-coded /usr/local/plan9 paths..."
47 echo "Building web manual..."
48 cd $PLAN9/dist; mk man
49 if [ -x LOCAL.INSTALL ]; then
50 echo "Running local modifications..."
56 echo "Add these to your profile environment."
57 echo " PLAN9=$PLAN9 export PLAN9"
58 echo ' PATH=$PATH:'"$PLAN9/bin export PATH"
60 ) 2>&1 | tee install.log