2015-04-10 13:40:02 +00:00
|
|
|
#!/bin/sh
|
2015-04-09 22:53:46 +00:00
|
|
|
#
|
|
|
|
# build.sh
|
|
|
|
|
2016-03-22 17:08:39 +00:00
|
|
|
[ "$XLINT" ] && exit 0
|
2015-07-14 08:47:06 +00:00
|
|
|
|
2015-04-15 09:23:37 +00:00
|
|
|
if [ "$1" != "$2" ]; then
|
|
|
|
arch="-a $2"
|
2015-04-09 22:53:46 +00:00
|
|
|
fi
|
|
|
|
|
2015-08-16 08:53:30 +00:00
|
|
|
PKGS=$(./xbps-src sort-dependencies $(cat /tmp/templates))
|
|
|
|
|
|
|
|
for pkg in ${PKGS}; do
|
2018-05-21 14:04:22 +00:00
|
|
|
./xbps-src -H $HOME/hostdir $arch 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
|