[arch-dev-public] [Patch] devtools: clean up of commitpkg
Eric Bélanger
snowmaniscool at gmail.com
Tue Aug 25 22:56:01 EDT 2009
Hi,
The following patch:
- replaces backticks by $()
- removes support for package names without the arch in them (all our
repos now uses the arch in the package name)
- removes support for the obsolete and dead [unstable] repo
Eric
==============
--- /tmp/commitpkg 2009-08-25 20:58:19.843328237 -0400
+++ commitpkg 2009-08-25 22:48:50.000000000 -0400
@@ -13,7 +13,7 @@
source ~/.makepkg.conf
fi
-cmd=`basename $0`
+cmd=$(basename $0)
if [ ! -f PKGBUILD ]; then
echo "No PKGBUILD file"
@@ -28,23 +28,17 @@
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
echo "File $pkgfile doesn't exist"
exit 1
@@ -59,8 +53,6 @@
repo="core"
elif [ "$cmd" == "testingpkg" ]; then
repo="testing"
-elif [ "$cmd" == "unstablepkg" ]; then
- repo="unstable"
elif [ "$cmd" == "communitypkg" ]; then
repo="community"
server="aur.archlinux.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commitpkg-cleanup.patch
Type: text/x-patch
Size: 1290 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090825/126fa41d/attachment.bin>
More information about the arch-dev-public
mailing list