2015-04-10 15:40:02 +02: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
|
|
|
|
|
|
|
|
for pkg in $(cat /tmp/templates); do
|
2015-04-10 13:31:24 +02:00
|
|
|
./xbps-src -H $HOME/hostdir $arch -C 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
|