diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-26 12:14:53 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-26 12:14:53 +0300 |
commit | 6696212ddecbb5ffae8d71467518cc5651c90b3f (patch) | |
tree | b5df01923337c3bd473f447bd865d553420c6cec /mbuild | |
parent | 9a4bbcd930afa54bc605e3020fb38353161e5a84 (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-x | mbuild | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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. |