2020-01-05 10:11:30 +01:00
|
|
|
#!/bin/sh
|
2015-04-10 00:53:46 +02:00
|
|
|
#
|
|
|
|
# build.sh
|
|
|
|
|
2015-04-15 11:23:37 +02:00
|
|
|
if [ "$1" != "$2" ]; then
|
|
|
|
arch="-a $2"
|
2015-04-10 00:53:46 +02:00
|
|
|
fi
|
|
|
|
|
2020-12-02 19:30:48 +01:00
|
|
|
if [ "$3" = 1 ]; then
|
|
|
|
test="-Q"
|
2019-06-04 12:09:53 +02:00
|
|
|
fi
|
|
|
|
|
2020-12-02 19:30:48 +01:00
|
|
|
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
|
2020-01-29 23:28:40 +01:00
|
|
|
|
2015-08-16 10:53:30 +02:00
|
|
|
for pkg in ${PKGS}; do
|
2020-12-02 19:30:48 +01:00
|
|
|
/hostrepo/xbps-src -j$(nproc) -H "$HOME"/hostdir $arch $test pkg "$pkg"
|
2015-04-10 11:38:13 +02:00
|
|
|
[ $? -eq 1 ] && exit 1
|
2015-04-10 00:53:46 +02:00
|
|
|
done
|
|
|
|
|
2015-04-10 14:38:49 +02:00
|
|
|
exit 0
|