commit 2de4124aff6dc145b1e813b03d5d7dec7ad703db
parent 2012ed950b4384a87a33970ce8cebb93faa84f43
Author: sin <sin@2f30.org>
Date: Thu, 26 Sep 2013 18:03:03 +0100
Allow building multiple packages with pkgbuild
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/pkgbuild b/pkgbuild
@@ -1,7 +1,7 @@
#!/bin/sh
if test -z "$1"; then
- echo usage: $0 pkgpath 1>&2
+ echo usage: $0 pkgpath... 1>&2
exit 1
fi
@@ -15,4 +15,7 @@ fi
. ./prepare-root
mkdir -p src cross
-./build "$1"
+while [ $# -gt 0 ]; do
+ ./build "$1"
+ shift
+done