void-packages/common/travis/build.sh

24 lines
377 B
Bash
Raw Normal View History

#!/bin/sh
#
# build.sh
2015-04-15 09:23:37 +00:00
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
NPROCS=1
if [ -r /proc/cpuinfo ]; then
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
fi
2020-01-29 22:28:40 +00:00
export FTP_RETRIES=10
for pkg in ${PKGS}; do
/hostrepo/xbps-src -j$NPROCS -H "$HOME"/hostdir $arch pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0