19 lines
259 B
Bash
Executable File
19 lines
259 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# build.sh
|
|
|
|
[ "$XLINT" ] && exit 0
|
|
|
|
if [ "$1" != "$2" ]; then
|
|
arch="-a $2"
|
|
fi
|
|
|
|
PKGS=$(./xbps-src sort-dependencies $(cat /tmp/templates))
|
|
|
|
for pkg in ${PKGS}; do
|
|
./xbps-src -H $HOME/hostdir $arch pkg "$pkg"
|
|
[ $? -eq 1 ] && exit 1
|
|
done
|
|
|
|
exit 0
|