mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-14 21:27:01 +02:00
xbps-src intentionally exits non-zero if broken or nocross, so let it do that, as error exits are handled in the script. fixes: #54561
20 lines
282 B
Bash
Executable file
20 lines
282 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# build.sh
|
|
|
|
if [ "$1" != "$2" ]; then
|
|
arch="-a $2"
|
|
fi
|
|
|
|
if [ "$3" = 1 ]; then
|
|
test="-Q"
|
|
fi
|
|
|
|
PKGS=$(./xbps-src $test sort-dependencies $(cat /tmp/templates))
|
|
|
|
for pkg in ${PKGS}; do
|
|
./xbps-src -j$(nproc) -s $arch $test pkg "$pkg"
|
|
[ $? -eq 1 ] && exit 1
|
|
done
|
|
|
|
exit 0
|