mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
travis/build.sh: use -jX in xbps-src.
Do not rely on nproc(1) being available. Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
parent
1ed98ee33c
commit
baa928b247
1 changed files with 6 additions and 1 deletions
|
@ -25,8 +25,13 @@ XBPS_SRCPKGDIR=/hostrepo/srcpkgs XBPS_MASTERDIR=/ chroot_prepare $1 || {
|
||||||
|
|
||||||
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
|
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
|
||||||
|
|
||||||
|
NPROCS=1
|
||||||
|
if [ -r /proc/cpuinfo ]; then
|
||||||
|
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
|
||||||
|
fi
|
||||||
|
|
||||||
for pkg in ${PKGS}; do
|
for pkg in ${PKGS}; do
|
||||||
/hostrepo/xbps-src -H "$HOME"/hostdir $arch pkg "$pkg"
|
/hostrepo/xbps-src -j$NPROCS -H "$HOME"/hostdir $arch pkg "$pkg"
|
||||||
[ $? -eq 1 ] && exit 1
|
[ $? -eq 1 ] && exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue