summaryrefslogtreecommitdiffstats
path: root/gen-perl-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'gen-perl-pkg')
-rwxr-xr-xgen-perl-pkg13
1 files changed, 7 insertions, 6 deletions
diff --git a/gen-perl-pkg b/gen-perl-pkg
index c63e1c9..f229520 100755
--- a/gen-perl-pkg
+++ b/gen-perl-pkg
@@ -1,10 +1,11 @@
#!/bin/bash
set -e
-pkg=$1
-export MAINTAINER="Florian Pritz <bluewind@xinu.at>"
-target=~/arch/community
+for pkg in "$@"; do
+ export MAINTAINER="Florian Pritz <bluewind@xinu.at>"
+ target=~/arch/community
-genpkg $pkg
-mkdir -p "$target/$pkg/"{trunk,repos}
-cp "~/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/"
+ genpkg $pkg
+ mkdir -p "$target/$pkg/"{trunk,repos}
+ cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/"
+done