vp-build/common/travis/build.sh
Juan RP 41d2237b20 common/travis/build.sh: only error out if xbps-src exits with 1.
broken/nocross exits with 2, should be treated as success.
2015-04-10 11:38:13 +02:00

14 lines
170 B
Bash
Executable File

#! /bin/sh
#
# build.sh
if [ "$1" != x86_64 ]; then
arch="-a $1"
fi
for pkg in $(cat /tmp/templates); do
./xbps-src $arch -C pkg "$pkg"
[ $? -eq 1 ] && exit 1
done