mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
split in half
This commit is contained in:
parent
2214d4b6de
commit
df29f2cef6
1 changed files with 79 additions and 56 deletions
27
INSTALL
27
INSTALL
|
@ -1,5 +1,24 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
dobuild=true
|
||||||
|
doinstall=true
|
||||||
|
|
||||||
|
case "x$1" in
|
||||||
|
x)
|
||||||
|
;;
|
||||||
|
x-b)
|
||||||
|
dobuild=true
|
||||||
|
doinstall=false
|
||||||
|
;;
|
||||||
|
x-c)
|
||||||
|
dobuild=false
|
||||||
|
doinstall=true
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'usage: INSTALL [-b | -c]' 1>&2
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
PLAN9=`pwd` export PLAN9
|
PLAN9=`pwd` export PLAN9
|
||||||
PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH
|
PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH
|
||||||
|
|
||||||
|
@ -31,6 +50,7 @@ if [ -f LOCAL.config ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
|
if $dobuild; then
|
||||||
if [ ! -x ../bin/mk ]; then
|
if [ ! -x ../bin/mk ]; then
|
||||||
echo "* Building mk..."
|
echo "* Building mk..."
|
||||||
../dist/buildmk 2>&1 | sed 's/^[+] //'
|
../dist/buildmk 2>&1 | sed 's/^[+] //'
|
||||||
|
@ -47,7 +67,7 @@ mk all || exit 1
|
||||||
if [ ! -x $PLAN9/src/cmd/o.cleanname -o ! -x $PLAN9/src/cmd/acme/o.acme ]; then
|
if [ ! -x $PLAN9/src/cmd/o.cleanname -o ! -x $PLAN9/src/cmd/acme/o.acme ]; then
|
||||||
echo "* Warning: not all binaries built successfully."
|
echo "* Warning: not all binaries built successfully."
|
||||||
fi
|
fi
|
||||||
echo "* Installing everything..."
|
echo "* Installing everything in $PLAN9/bin..."
|
||||||
mk install || exit 1
|
mk install || exit 1
|
||||||
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme -o ! -x $PLAN9/bin/sam ]; then
|
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme -o ! -x $PLAN9/bin/sam ]; then
|
||||||
echo " "
|
echo " "
|
||||||
|
@ -55,6 +75,9 @@ if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme -o ! -x $PLAN9/bin/sam ];
|
||||||
fi
|
fi
|
||||||
echo "* Cleaning up..."
|
echo "* Cleaning up..."
|
||||||
mk clean
|
mk clean
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $doinstall; then
|
||||||
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/sam ]; then
|
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/sam ]; then
|
||||||
# Cleanname and sam are needed for moveplan9.sh and the man updates.
|
# Cleanname and sam are needed for moveplan9.sh and the man updates.
|
||||||
if [ ! -x $PLAN9/bin/cleanname ]; then
|
if [ ! -x $PLAN9/bin/cleanname ]; then
|
||||||
|
@ -92,6 +115,6 @@ echo " "
|
||||||
echo "* Add these to your profile environment."
|
echo "* Add these to your profile environment."
|
||||||
echo " PLAN9=$PLAN9 export PLAN9"
|
echo " PLAN9=$PLAN9 export PLAN9"
|
||||||
echo ' PATH=$PATH:$PLAN9/bin export PATH'
|
echo ' PATH=$PATH:$PLAN9/bin export PATH'
|
||||||
|
fi
|
||||||
) 2>&1 | tee install.log | awk -f $PLAN9/dist/isum.awk | tee install.sum
|
) 2>&1 | tee install.log | awk -f $PLAN9/dist/isum.awk | tee install.sum
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue