summaryrefslogtreecommitdiff
path: root/extrapkg
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2005-05-17 06:28:33 +0000
committerJason Chu <jason@archlinux.org>2005-05-17 06:28:33 +0000
commit231e1ab3a07ae4a9f0d832aa90e3592eb52ba563 (patch)
treed8b413c63a51f2f276b92162749ae55f228120a4 /extrapkg
parent66b4cfe770a412193cf2064c8a06fa96e5435d08 (diff)
downloaddevtools32-231e1ab3a07ae4a9f0d832aa90e3592eb52ba563.tar.xz
added support for communitypkg and removed some old commented out code
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@212 630f3fb4-fbd1-0310-a574-b293cca3120f
Diffstat (limited to 'extrapkg')
-rwxr-xr-xextrapkg27
1 files changed, 12 insertions, 15 deletions
diff --git a/extrapkg b/extrapkg
index 802946c..cf4b247 100755
--- a/extrapkg
+++ b/extrapkg
@@ -4,20 +4,6 @@ source /etc/makepkg.conf
cmd=`basename $0`
-#if echo *.pkg.tar.gz | grep ' ' >/dev/null 2>&1; then
-# echo "Too many packages in current dir"
-# exit 1
-#fi
-#
-#if [ ! -f *.pkg.tar.gz ]; then
-# echo "No package file"
-# exit 1
-#fi
-#
-#pkgfile=`echo *.pkg.tar.gz`
-#pkg=`echo *.pkg.tar.gz | rev | cut -d- -f 3- | rev`
-#ver=`echo *.pkg.tar.gz | rev | cut -d- -f -2 | rev | sed 's/\.pkg\.tar\.gz//'`
-
if [ ! -f PKGBUILD ]; then
echo "No PKGBUILD file"
exit 1
@@ -43,9 +29,20 @@ elif [ "$cmd" == "testingpkg" ]; then
elif [ "$cmd" == "unstablepkg" ]; then
repo="unstable"
tag="CURRENT"
+elif [ "$cmd" == "communitypkg" ]; then
+ repo="community"
+ tag="CURRENT"
fi
-scp $pkgfile archlinux.org:/home/ftp/$repo/os/$CARCH
+if [ "$repo" != "communitypkg" ]; then
+ scp $pkgfile archlinux.org:/home/ftp/$repo/os/$CARCH
+else
+ if [ ! -f ~/.tupkg ]; then
+ echo "Must configure tupkg via ~/.tupkg, cancelled"
+ exit 1
+ fi
+ tupkg $pkgfile
+fi
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1