about summary refs log tree commit diff
path: root/xbulk
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-09-19 16:50:27 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-19 16:50:27 +0200
commit8d4655432f66d08c27c4f19b1731d48df7794ec9 (patch)
tree90fc3085d6b99057910fe189e129f18025e45bc6 /xbulk
parent1123239d055cfe09d7da926baa385d2d1838305f (diff)
downloadxtools-8d4655432f66d08c27c4f19b1731d48df7794ec9.tar.gz
xtools-8d4655432f66d08c27c4f19b1731d48df7794ec9.tar.xz
xtools-8d4655432f66d08c27c4f19b1731d48df7794ec9.zip
xbulk: simply pass all args to show-build-deps
Diffstat (limited to 'xbulk')
-rwxr-xr-xxbulk6
1 files changed, 2 insertions, 4 deletions
diff --git a/xbulk b/xbulk
index 1bb72a4..5da3c74 100755
--- a/xbulk
+++ b/xbulk
@@ -2,7 +2,6 @@
 # xbulk [-n] [-k] [xbps-src flags...] PKGS... - simple XBPS bulk builder
 
 ARGS=
-ARGS2=
 MAKEARGS=
 PKGS=
 
@@ -14,8 +13,7 @@ mainpkg() {
 while [ $# -gt 0 ]; do
 	case $1 in
 		-n|-k) MAKEARGS="$MAKEARGS $1";;
-		-o|-r) ARGS="$ARGS $1 $2"; shift;;
-		-a|-H|-m) ARGS="$ARGS $1 $2"; ARGS2="$ARGS2 $1 $2"; shift;;
+		-a|-H|-m|-o|-r) ARGS="$ARGS $1 $2"; shift;;
 		-*) ARGS="$ARGS $1";;
 		*) PKGS="$PKGS
 $(mainpkg $1)"
@@ -26,7 +24,7 @@ done
 {
 for pkg in $PKGS; do
 	echo all: pkg-$pkg
-	for dep in $(./xbps-src $ARGS2 show-build-deps $pkg |
+	for dep in $(./xbps-src $ARGS show-build-deps $pkg |
 			sed '1d;s|[<>].*$||g'); do
 		mainpkg $dep |
 		grep -Fx "$PKGS" |