aboutsummaryrefslogtreecommitdiff
path: root/mbuild
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-26 12:14:53 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-26 12:14:53 +0300
commit6696212ddecbb5ffae8d71467518cc5651c90b3f (patch)
treeb5df01923337c3bd473f447bd865d553420c6cec /mbuild
parent9a4bbcd930afa54bc605e3020fb38353161e5a84 (diff)
Squashed 'gitstatus/' changes from cc956ca78..331e9ff65
331e9ff65 docs: remove packaging instructions and instead discourage it c1fff558c install: add a link to #compiling docs if no gitstatusd is found 8632b85ab build: use extra optimization and hardening flags c0a71c757 mbuild: don't stop on first failure 52e0359ec build: don't link statically when doing a local linux build git-subtree-dir: gitstatus git-subtree-split: 331e9ff65df96e7423c0b7a01e5e98d6c6b7d428
Diffstat (limited to 'mbuild')
-rwxr-xr-xmbuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/mbuild b/mbuild
index 44800917..cf4bc008 100755
--- a/mbuild
+++ b/mbuild
@@ -283,17 +283,24 @@ function mbuild() {
print -r -- "starting build for $platform on $assets[$platform] (pid $!)"
pids+=($platform $!)
done
+ local failed=()
for platform pid in $pids; do
print -rn -- "$platform => "
if wait $pid; then
print -r -- "ok"
else
- print -r -- "error $?"
- print -r -- "---------------------"
- >&2 cat $logs/$platform
- return 1
+ print -r -- "error"
+ failed+=$platform
fi
done
+ (( $#failed )) || return 0
+ print
+ print -r -- "Error logs:"
+ print
+ for platform in $failed; do
+ print -r -- " $platform => $logs/$platform"
+ done
+ return 1
}
# Copied from https://github.com/romkatv/run-process-tree.