build.sh (306B)
1#!/bin/sh 2# 3# build.sh 4 5if [ "$1" != "$2" ]; then 6 arch="-a $2" 7fi 8 9if [ "$3" = 1 ]; then 10 test="-Q" 11fi 12 13PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates)) 14 15for pkg in ${PKGS}; do 16 /hostrepo/xbps-src -j$(nproc) -H "$HOME"/hostdir $arch $test pkg "$pkg" 17 [ $? -eq 1 ] && exit 1 18done 19 20exit 0