Commit 1bc6ab94 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

devel/upload: Build in parallel


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 5c566e17
......@@ -63,8 +63,15 @@ set ${hosts}
TXD=`mktemp -d`
trap 'rm -rf $TXD' EXIT
if [[ -f /proc/cpuinfo ]]; then
cpu_count=$(grep -E -c '^processor\s*:' /proc/cpuinfo)
make_args=-j$(( cpu_count + 1 ))
else
make_args=
fi
# install ganeti as a real tree
make install DESTDIR="$TXD"
make $make_args install DESTDIR="$TXD"
# copy additional needed files
install -D --mode=0755 doc/examples/ganeti.initd \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment