2015-04-10 13:40:02 +00:00
|
|
|
#!/bin/sh
|
2015-04-09 22:53:46 +00:00
|
|
|
#
|
|
|
|
# build.sh
|
|
|
|
|
2015-04-15 09:23:37 +00:00
|
|
|
if [ "$1" != "$2" ]; then
|
|
|
|
arch="-a $2"
|
2015-04-09 22:53:46 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
for pkg in $(cat /tmp/templates); do
|
2015-04-10 11:31:24 +00:00
|
|
|
./xbps-src -H $HOME/hostdir $arch -C pkg "$pkg"
|
2015-04-10 09:38:13 +00:00
|
|
|
[ $? -eq 1 ] && exit 1
|
2015-04-09 22:53:46 +00:00
|
|
|
done
|
|
|
|
|
2015-04-10 12:38:49 +00:00
|
|
|
exit 0
|