mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
autobuild.sh: avoid bashism
* autobuild.sh: Replace 'set -o pipefail' with POSIX alternative. Reported by Matthias Bolte.
This commit is contained in:
parent
211dd1e9c5
commit
fc6d5b2649
11
autobuild.sh
11
autobuild.sh
@ -35,9 +35,14 @@ esac
|
|||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
set -o pipefail
|
# set -o pipefail is a bashism; this use of exec is the POSIX alternative
|
||||||
make check 2>&1 | tee "$RESULTS"
|
exec 3>&1
|
||||||
make syntax-check 2>&1 | tee -a "$RESULTS"
|
st=$(
|
||||||
|
exec 4>&1 >&3
|
||||||
|
{ make check syntax-check 2>&1; echo $? >&4; } | tee "$RESULTS"
|
||||||
|
)
|
||||||
|
exec 3>&-
|
||||||
|
test $st = 0
|
||||||
test -x /usr/bin/lcov && make cov
|
test -x /usr/bin/lcov && make cov
|
||||||
|
|
||||||
rm -f *.tar.gz
|
rm -f *.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user