From 47e7a3706b4d51a94d383724f349493dc2b47a11 Mon Sep 17 00:00:00 2001 From: Daniel J Griffiths Date: Wed, 12 Aug 2009 13:39:25 -0700 Subject: commitpkg: Add support for 'any' architecture Signed-off-by: Aaron Griffin --- commitpkg | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3-70-g09d2