mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
Make install less chatty, more useful.
This commit is contained in:
parent
bdbc55d352
commit
6637b803f6
5 changed files with 47 additions and 20 deletions
55
INSTALL
55
INSTALL
|
@ -30,9 +30,16 @@ if [ -f LOCAL.config ]; then
|
||||||
cat LOCAL.config >>config
|
cat LOCAL.config >>config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "* Building mk..."
|
|
||||||
cd src
|
cd src
|
||||||
make
|
if [ ! -x ../bin/mk ]; then
|
||||||
|
echo "* Building mk..."
|
||||||
|
../dist/buildmk 2>&1 | sed 's/^[+] //'
|
||||||
|
fi
|
||||||
|
if [ ! -x ../bin/mk ]; then
|
||||||
|
echo "* Error: mk failed to build."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "* Building everything (be patient)..."
|
echo "* Building everything (be patient)..."
|
||||||
mk clean
|
mk clean
|
||||||
mk libs-nuke
|
mk libs-nuke
|
||||||
|
@ -42,29 +49,41 @@ if [ ! -x $PLAN9/src/cmd/o.cleanname -o ! -x $PLAN9/src/cmd/acme/o.acme ]; then
|
||||||
fi
|
fi
|
||||||
echo "* Installing everything..."
|
echo "* Installing everything..."
|
||||||
mk install || exit 1
|
mk install || exit 1
|
||||||
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme ]; then
|
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme -o ! -x $PLAN9/bin/sam ]; then
|
||||||
echo " "
|
echo " "
|
||||||
echo "* Warning: not all binaries built successfully."
|
echo "* Warning: not all binaries built successfully."
|
||||||
fi
|
fi
|
||||||
if [ ! -x $PLAN9/bin/cleanname ]; then
|
|
||||||
echo " "
|
|
||||||
echo "* Installation failed: $PLAN9/bin/cleanname does not exist."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "* Cleaning up..."
|
echo "* Cleaning up..."
|
||||||
mk clean
|
mk clean
|
||||||
echo "* Renaming hard-coded /usr/local/plan9 paths..."
|
if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/sam ]; then
|
||||||
cd $PLAN9
|
# Cleanname and sam are needed for moveplan9.sh and the man updates.
|
||||||
sh lib/moveplan9.sh
|
if [ ! -x $PLAN9/bin/cleanname ]; then
|
||||||
echo "* Building web manual..."
|
echo " "
|
||||||
(
|
echo "* Installation failed: $PLAN9/bin/cleanname does not exist."
|
||||||
cd $PLAN9/dist
|
exit 1
|
||||||
echo cd `pwd`';' mk man
|
fi
|
||||||
mk man
|
if [ ! -x $PLAN9/bin/sam ]; then
|
||||||
)
|
echo " "
|
||||||
|
echo "* Installation failed: $PLAN9/bin/sam does not exist."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "* NOT renaming hard-coded /usr/local/plan9 paths."
|
||||||
|
echo "* NOT building web manual."
|
||||||
|
else
|
||||||
|
echo "* Renaming hard-coded /usr/local/plan9 paths..."
|
||||||
|
cd $PLAN9
|
||||||
|
sh lib/moveplan9.sh
|
||||||
|
echo "* Building web manual..."
|
||||||
|
(
|
||||||
|
cd $PLAN9/dist
|
||||||
|
echo cd `pwd`';' mk man
|
||||||
|
mk man
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -x LOCAL.INSTALL ]; then
|
if [ -x LOCAL.INSTALL ]; then
|
||||||
echo "* Running local modifications..."
|
echo "* Running local modifications..."
|
||||||
echo ./LOCAL.INSTALL
|
echo cd `pwd`';' ./LOCAL.INSTALL
|
||||||
./LOCAL.INSTALL
|
./LOCAL.INSTALL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
2
bin/9c
2
bin/9c
|
@ -67,7 +67,7 @@ xtmp=/tmp/9c.$$.$USER.out
|
||||||
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
|
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
|
||||||
status=$?
|
status=$?
|
||||||
grep -v '__p9l_autolib_' $xtmp |
|
grep -v '__p9l_autolib_' $xtmp |
|
||||||
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is almost always misused|: In function `|: At top level:' |
|
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function `|: At top level:' |
|
||||||
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
|
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
|
||||||
uniq 1>&2
|
uniq 1>&2
|
||||||
rm -f $xtmp $xtmp.status
|
rm -f $xtmp $xtmp.status
|
||||||
|
|
3
dist/isum.awk
vendored
3
dist/isum.awk
vendored
|
@ -11,6 +11,9 @@ debug { print "# " $0 }
|
||||||
|
|
||||||
/^$/ { next }
|
/^$/ { next }
|
||||||
|
|
||||||
|
/^echo cd / { next }
|
||||||
|
/^\+\+ pwd/ { next }
|
||||||
|
|
||||||
/^\* /{
|
/^\* /{
|
||||||
if(debug) print "% mark"
|
if(debug) print "% mark"
|
||||||
print >out
|
print >out
|
||||||
|
|
|
@ -25,11 +25,12 @@ MKDIRS=\
|
||||||
mkmk.sh:VD:
|
mkmk.sh:VD:
|
||||||
(
|
(
|
||||||
echo cd lib9
|
echo cd lib9
|
||||||
|
echo 'echo cd `pwd`'
|
||||||
(cd lib9; mk -n -a install)
|
(cd lib9; mk -n -a install)
|
||||||
echo cd ..
|
echo cd ..
|
||||||
for i in libbio libregexp cmd/mk
|
for i in libbio libregexp cmd/mk
|
||||||
do
|
do
|
||||||
(cd $i; echo cd `pwd`; mk -n -a install)
|
(cd $i; echo cd $i; echo 'echo cd `pwd`'; mk -n -a install)
|
||||||
echo cd ..
|
echo cd ..
|
||||||
done
|
done
|
||||||
) | sed '
|
) | sed '
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
cd lib9
|
cd lib9
|
||||||
|
echo cd `pwd`
|
||||||
9c _exits.c
|
9c _exits.c
|
||||||
9c _p9dialparse.c
|
9c _p9dialparse.c
|
||||||
9c _p9dir.c
|
9c _p9dir.c
|
||||||
|
@ -144,6 +145,7 @@ cd lib9
|
||||||
9ar rvc $PLAN9/lib/lib9.a _exits.o _p9dialparse.o _p9dir.o announce.o argv0.o atexit.o atoi.o atol.o atoll.o atnotify.o await.o cistrcmp.o cistrncmp.o cistrstr.o cleanname.o convD2M.o convM2D.o convM2S.o convS2M.o create.o crypt.o ctime.o date.o dial.o dirfstat.o dirfwstat.o dirmodefmt.o dirread.o dirstat.o dirwstat.o dup.o encodefmt.o errstr.o exec.o execl.o fcallfmt.o get9root.o getcallerpc-$OBJTYPE.o getenv.o getfields.o getnetconn.o getns.o getuser.o getwd.o jmp.o lrand.o lnrand.o main.o malloc.o malloctag.o mallocz.o nan.o needsrcquote.o needstack.o netcrypt.o netmkaddr.o notify.o nrand.o nulldir.o open.o opentemp.o pipe.o post9p.o postnote.o qlock.o quote.o rand.o read9pmsg.o readcons.o readn.o rfork.o searchpath.o seek.o sendfd.o sleep.o strdup.o strecpy.o sysfatal.o syslog.o sysname.o time.o tokenize.o truerand.o u16.o u32.o u64.o unsharp.o wait.o waitpid.o dofmt.o fltfmt.o fmt.o fmtfd.o fmtfdflush.o fmtlock2.o fmtprint.o fmtquote.o fmtrune.o fmtstr.o fmtvprint.o fprint.o nan64.o print.o runefmtstr.o runeseprint.o runesmprint.o runesnprint.o runesprint.o runevseprint.o runevsmprint.o runevsnprint.o seprint.o smprint.o snprint.o sprint.o strtod.o vfprint.o vseprint.o vsmprint.o vsnprint.o charstod.o pow10.o rune.o runestrcat.o runestrchr.o runestrcmp.o runestrcpy.o runestrdup.o runestrlen.o runestrecpy.o runestrncat.o runestrncmp.o runestrncpy.o runestrrchr.o runestrstr.o runetype.o utfecpy.o utflen.o utfnlen.o utfrrune.o utfrune.o utfutf.o
|
9ar rvc $PLAN9/lib/lib9.a _exits.o _p9dialparse.o _p9dir.o announce.o argv0.o atexit.o atoi.o atol.o atoll.o atnotify.o await.o cistrcmp.o cistrncmp.o cistrstr.o cleanname.o convD2M.o convM2D.o convM2S.o convS2M.o create.o crypt.o ctime.o date.o dial.o dirfstat.o dirfwstat.o dirmodefmt.o dirread.o dirstat.o dirwstat.o dup.o encodefmt.o errstr.o exec.o execl.o fcallfmt.o get9root.o getcallerpc-$OBJTYPE.o getenv.o getfields.o getnetconn.o getns.o getuser.o getwd.o jmp.o lrand.o lnrand.o main.o malloc.o malloctag.o mallocz.o nan.o needsrcquote.o needstack.o netcrypt.o netmkaddr.o notify.o nrand.o nulldir.o open.o opentemp.o pipe.o post9p.o postnote.o qlock.o quote.o rand.o read9pmsg.o readcons.o readn.o rfork.o searchpath.o seek.o sendfd.o sleep.o strdup.o strecpy.o sysfatal.o syslog.o sysname.o time.o tokenize.o truerand.o u16.o u32.o u64.o unsharp.o wait.o waitpid.o dofmt.o fltfmt.o fmt.o fmtfd.o fmtfdflush.o fmtlock2.o fmtprint.o fmtquote.o fmtrune.o fmtstr.o fmtvprint.o fprint.o nan64.o print.o runefmtstr.o runeseprint.o runesmprint.o runesnprint.o runesprint.o runevseprint.o runevsmprint.o runevsnprint.o seprint.o smprint.o snprint.o sprint.o strtod.o vfprint.o vseprint.o vsmprint.o vsnprint.o charstod.o pow10.o rune.o runestrcat.o runestrchr.o runestrcmp.o runestrcpy.o runestrdup.o runestrlen.o runestrecpy.o runestrncat.o runestrncmp.o runestrncpy.o runestrrchr.o runestrstr.o runetype.o utfecpy.o utflen.o utfnlen.o utfrrune.o utfrune.o utfutf.o
|
||||||
cd ..
|
cd ..
|
||||||
cd libbio
|
cd libbio
|
||||||
|
echo cd `pwd`
|
||||||
9c bbuffered.c
|
9c bbuffered.c
|
||||||
9c bfildes.c
|
9c bfildes.c
|
||||||
9c bflush.c
|
9c bflush.c
|
||||||
|
@ -164,6 +166,7 @@ cd libbio
|
||||||
9ar rvc $PLAN9/lib/libbio.a bbuffered.o bfildes.o bflush.o bgetc.o bgetrune.o bgetd.o binit.o boffset.o bprint.o bputc.o bputrune.o brdline.o brdstr.o bread.o bseek.o bvprint.o bwrite.o
|
9ar rvc $PLAN9/lib/libbio.a bbuffered.o bfildes.o bflush.o bgetc.o bgetrune.o bgetd.o binit.o boffset.o bprint.o bputc.o bputrune.o brdline.o brdstr.o bread.o bseek.o bvprint.o bwrite.o
|
||||||
cd ..
|
cd ..
|
||||||
cd libregexp
|
cd libregexp
|
||||||
|
echo cd `pwd`
|
||||||
9c regcomp.c
|
9c regcomp.c
|
||||||
9c regerror.c
|
9c regerror.c
|
||||||
9c regexec.c
|
9c regexec.c
|
||||||
|
@ -174,6 +177,7 @@ cd libregexp
|
||||||
9ar rvc $PLAN9/lib/libregexp9.a regcomp.o regerror.o regexec.o regsub.o regaux.o rregexec.o rregsub.o
|
9ar rvc $PLAN9/lib/libregexp9.a regcomp.o regerror.o regexec.o regsub.o regaux.o rregexec.o rregsub.o
|
||||||
cd ..
|
cd ..
|
||||||
cd cmd/mk
|
cd cmd/mk
|
||||||
|
echo cd `pwd`
|
||||||
9c arc.c
|
9c arc.c
|
||||||
9c archive.c
|
9c archive.c
|
||||||
9c bufblock.c
|
9c bufblock.c
|
||||||
|
|
Loading…
Reference in a new issue