about summary refs log tree commit diff
path: root/xbulk
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-09-17 19:04:36 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-18 14:14:35 +0200
commit1123239d055cfe09d7da926baa385d2d1838305f (patch)
treeedc7e7c00b2469f22b9fa1314479207bb4a21828 /xbulk
parent2b4c07faf62a8a79eccd6c0c57b95e22bcc55ea7 (diff)
downloadxtools-1123239d055cfe09d7da926baa385d2d1838305f.tar.gz
xtools-1123239d055cfe09d7da926baa385d2d1838305f.tar.xz
xtools-1123239d055cfe09d7da926baa385d2d1838305f.zip
xbulk: pass some xbps-src args to xbps-src show-build-deps
Closes: #48 [via git-merge-pr]
Diffstat (limited to 'xbulk')
-rwxr-xr-xxbulk6
1 files changed, 4 insertions, 2 deletions
diff --git a/xbulk b/xbulk
index 523e8fa..1bb72a4 100755
--- a/xbulk
+++ b/xbulk
@@ -2,6 +2,7 @@
 # xbulk [-n] [-k] [xbps-src flags...] PKGS... - simple XBPS bulk builder
 
 ARGS=
+ARGS2=
 MAKEARGS=
 PKGS=
 
@@ -13,7 +14,8 @@ mainpkg() {
 while [ $# -gt 0 ]; do
 	case $1 in
 		-n|-k) MAKEARGS="$MAKEARGS $1";;
-		-a|-H|-m|-o|-r) ARGS="$ARGS $1 $2"; shift;;
+		-o|-r) ARGS="$ARGS $1 $2"; shift;;
+		-a|-H|-m) ARGS="$ARGS $1 $2"; ARGS2="$ARGS2 $1 $2"; shift;;
 		-*) ARGS="$ARGS $1";;
 		*) PKGS="$PKGS
 $(mainpkg $1)"
@@ -24,7 +26,7 @@ done
 {
 for pkg in $PKGS; do
 	echo all: pkg-$pkg
-	for dep in $(./xbps-src show-build-deps $pkg |
+	for dep in $(./xbps-src $ARGS2 show-build-deps $pkg |
 			sed '1d;s|[<>].*$||g'); do
 		mainpkg $dep |
 		grep -Fx "$PKGS" |