blob: 8949b4d291f4abc8a149a66380615a30c0fc6b17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# xbulk [-n] [-k] [-xbps_src_flags] PKG... - simple XBPS bulk builder
ARGS=
MAKEARGS=
{
for pkg; do
case $pkg in
-n|-k) MAKEARGS="$MAKEARGS $pkg";;
-*) ARGS="$ARGS $pkg";;
*)
echo all: pkg-$pkg
for dep in $(./xbps-src show-build-deps $pkg | sed '1d;s|[<>].*$||g'); do
echo pkg-$pkg: pkg-$dep
done
esac
done
printf '%s\n' pkg-%: " pkg=\$@; ./xbps-src $ARGS pkg \$\${pkg#pkg-}"
} | make -f - $MAKEARGS
|