This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/common/travis/build.sh

21 lines
309 B
Bash
Raw Normal View History

2023-08-05 21:19:04 +01:00
#!/bin/sh
#
# build.sh
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
if [ "$3" = 1 ]; then
test="-Q"
fi
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
/hostrepo/xbps-src -j$(nproc) -s -H "$HOME"/hostdir $arch $test pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0