vp-build/common/travis/build.sh

19 lines
259 B
Bash
Raw Normal View History

#!/bin/sh
#
# build.sh
[ "$XLINT" ] && exit 0
2015-07-14 10:47:06 +02:00
2015-04-15 11:23:37 +02:00
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
PKGS=$(./xbps-src sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
./xbps-src -H $HOME/hostdir $arch pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0