summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2007-10-31 17:41:17 +0100
committerDan McGee <dan@archlinux.org>2007-11-04 16:50:04 +0100
commit4a5e7b6bd1a887f67b9b9ec8115250fc92c741ca (patch)
tree096894960845a62a9a4bdff005e682c6803ff445 /scripts/makepkg.sh.in
parent0ea43089e1b95bd7b4e25ca170e155295f2b2b2d (diff)
downloadpacman-4a5e7b6bd1a887f67b9b9ec8115250fc92c741ca.tar.gz
pacman-4a5e7b6bd1a887f67b9b9ec8115250fc92c741ca.tar.xz
Add support for arch='any'
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 831c1bda..e23484ea 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1300,6 +1300,10 @@ if [ $(echo "$pkgrel" | grep '-') ]; then
exit 1
fi
+if [ "$arch" = 'any' ]; then
+ CARCH='any'
+fi
+
if ! in_array $CARCH ${arch[@]}; then
if [ "$IGNOREARCH" = "0" ]; then
error "$(gettext "%s is not available for the '%s' architecture.")" "$pkgname" "$CARCH"