mirror of
https://github.com/golang/go
synced 2024-11-18 11:34:45 -07:00
set -e does not apply to ( ) blocks,
so implement the check manually. sigh. R=r DELTA=17 (6 added, 0 deleted, 11 changed) OCL=30606 CL=30612
This commit is contained in:
parent
343bfcfca7
commit
bede992dd3
@ -19,7 +19,12 @@ cp quietgcc.bash $HOME/bin/quietgcc
|
|||||||
chmod +x $HOME/bin/quietgcc
|
chmod +x $HOME/bin/quietgcc
|
||||||
|
|
||||||
for i in lib9 libbio libmach_amd64 libregexp cmd pkg cmd/gobuild cmd/godoc cmd/gofmt
|
for i in lib9 libbio libmach_amd64 libregexp cmd pkg cmd/gobuild cmd/godoc cmd/gofmt
|
||||||
do (
|
do
|
||||||
|
# The ( ) here are to preserve the current directory
|
||||||
|
# for the next round despite the cd $i below.
|
||||||
|
# set -e does not apply to ( ) so we must explicitly
|
||||||
|
# test the exit status.
|
||||||
|
(
|
||||||
echo; echo; echo %%%% making $i %%%%; echo
|
echo; echo; echo %%%% making $i %%%%; echo
|
||||||
cd $i
|
cd $i
|
||||||
case $i in
|
case $i in
|
||||||
@ -29,7 +34,8 @@ do (
|
|||||||
*)
|
*)
|
||||||
make install
|
make install
|
||||||
esac
|
esac
|
||||||
) done
|
) || exit 1
|
||||||
|
done
|
||||||
|
|
||||||
case "`uname`" in
|
case "`uname`" in
|
||||||
Darwin)
|
Darwin)
|
||||||
|
Loading…
Reference in New Issue
Block a user