summaryrefslogtreecommitdiffstats
path: root/commitpkg
diff options
context:
space:
mode:
authorDaniel J Griffiths <ghost1227@archlinux.us>2009-08-12 22:39:25 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-12 22:39:25 +0200
commit47e7a3706b4d51a94d383724f349493dc2b47a11 (patch)
treebde9eef8e5e3abae8836b02ab6d1d52a0b14a984 /commitpkg
parenta3f1558b28de4ef0d3d085ba5b491d8e14da82f4 (diff)
downloaddevtools-47e7a3706b4d51a94d383724f349493dc2b47a11.tar.gz
devtools-47e7a3706b4d51a94d383724f349493dc2b47a11.tar.xz
commitpkg: Add support for 'any' architecture
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'commitpkg')
-rwxr-xr-xcommitpkg8
1 files changed, 8 insertions, 0 deletions
diff --git a/commitpkg b/commitpkg
index 7ef75b3..6a232e8 100755
--- a/commitpkg
+++ b/commitpkg
@@ -27,14 +27,22 @@ fi
source PKGBUILD
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
+anypkgfile=${pkgname}-${pkgver}-${pkgrel}-any${PKGEXT}
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}${PKGEXT}
if [ ! -f $pkgfile ]; then
if [ -f $PKGDEST/$pkgfile ]; then
pkgfile=$PKGDEST/$pkgfile
+ anypkgfile=$PKGDEST/$anypkgfile
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
+ elif [ -f $anypkgfile ]; then
+ pkgfile=$anypkgfile
+ CARCH=any
elif [ -f $oldstylepkgfile ]; then
pkgfile=$oldstylepkgfile
+ elif [ -f $PKGDEST/$anypkgfile ]; then
+ pkgfile=$PKGDEST/$anypkgfile
+ CARCH=any
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
pkgfile=$PKGDEST/$oldstylepkgfile
else