diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-13 12:15:44 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-13 12:15:44 +0300 |
commit | b0158178925484c058e6175e174b639237532c63 (patch) | |
tree | f981d2d715e6ef7de67c2dab6f3195fd7fa46341 /mbuild | |
parent | fa2e337cbdd88ccd297d25fa9847225211801d3e (diff) |
Squashed 'gitstatus/' changes from 38d62a47..1c74c8db
1c74c8db add linux-ppc64le
968779b5 fix tar invocation
300f657c create anonymous tar archives
a5581d18 force C locale during build (perl complains)
2616cd47 support downloads to usrbin
1e6075dd enable static linking on linux
2975d25f update libgit2 ref
bea6f868 add ppc64le target
git-subtree-dir: gitstatus
git-subtree-split: 1c74c8db0f422aa6f95ced878351e0c6944a9bd6
Diffstat (limited to 'mbuild')
-rwxr-xr-x | mbuild | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -117,6 +117,7 @@ local -rA assets=( linux-armv6l build-linux-armv7l linux-armv7l build-linux-armv7l linux-i686 build-linux-x86_64 + linux-ppc64le build-linux-ppc64le linux-x86_64 build-linux-x86_64 ) @@ -180,14 +181,15 @@ local build=' function build-unix() { local intro flags=(-sw) case $2 in - darwin-*) intro='PATH="/usr/local/bin:$PATH"';; + linux-ppc64le);; linux-*) flags+=(-d docker);; + darwin-*) intro='PATH="/usr/local/bin:$PATH"';; esac ssh $1 -- /bin/sh -uex <<<" $intro cd /tmp $build ${2##*-} ${(j: :)${(@q)flags}}" - scp $1:/tmp/gitstatus/usrbin/gitstatusd-$2 $binaries/ + scp $1:/tmp/gitstatus/usrbin/gitstatusd $binaries/gitstatusd-$2 } function build-windows() { @@ -236,7 +238,7 @@ function build-windows() { while true; do IFS= read -u $fd -r line || return 0 if [[ $line == *"warning: terminate MSYS2"* ]]; then - # At this point the machine is hosed. Rogue process with corrupted name + # At this point the machine is hosed. A rogue process with a corrupted name # is eating all CPU. The top SSH connection won't terminate on its own. ssh $1 powershell.exe <<<'Restart-Computer -Force' || true sleep 30 @@ -260,7 +262,7 @@ function build-windows() { cd -- $tmp $build ${2##*-} ${(j: :)${(@q)flags}} exit" - scp $1:$c/tmp/gitstatus/usrbin/gitstatusd-$2 $binaries/ + scp $1:$c/tmp/gitstatus/usrbin/gitstatusd $binaries/gitstatusd-$2 chmod +x $binaries/gitstatusd-$2 } @@ -272,7 +274,7 @@ function build() ( zsystem flock $locks/$machine build-${protocol[(k)$platform]} $machine $platform local tmp=gitstatusd-$platform.tmp.$$.tar.gz - ( cd -q -- $binaries; GZIP=-9 tar -czf $tmp gitstatusd-$platform ) + ( cd -q -- $binaries; tar --owner=0 --group=0 -I 'gzip -9' -cf $tmp gitstatusd-$platform ) mv -f -- $binaries/$tmp $binaries/gitstatusd-$platform.tar.gz ) |