summaryrefslogtreecommitdiffstats
path: root/pkgdb1
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-07-01 21:41:21 +0200
committerJudd Vinet <judd@archlinux.org>2004-07-01 21:41:21 +0200
commit93e510e081756fb2aebc9079a52cd9a046fae69b (patch)
treed6461315a80922601fe7a7950801d4c2babcf9e0 /pkgdb1
parentaf7a8885d8095ac78c8d4f4a5f183bb038c5e17a (diff)
downloaddbscripts-93e510e081756fb2aebc9079a52cd9a046fae69b.tar.gz
dbscripts-93e510e081756fb2aebc9079a52cd9a046fae69b.tar.xz
added new pkgdb scripts
Diffstat (limited to 'pkgdb1')
-rwxr-xr-xpkgdb139
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgdb1 b/pkgdb1
new file mode 100755
index 0000000..5c5c93d
--- /dev/null
+++ b/pkgdb1
@@ -0,0 +1,39 @@
+#!/bin/bash
+# $Id: pkgdb1,v 1.1 2004/07/01 19:41:21 judd Exp $
+
+tl=`pwd`
+
+repoid=$1
+if [ "$repoid" = "" ]; then
+ me=`basename $0`
+ echo "usage: $me <repoid>"
+ exit 1
+fi
+
+cd $tl
+for category in `find . -type d -maxdepth 1 | grep -v CVS | grep -v "^extra" | grep -v "^unstable"`; do
+ category=`echo $category | sed 's|./||'`
+ if [ "$category" = "." ]; then
+ continue
+ fi
+ for pkg in `ls $category | sort`; do
+ cd $tl/$category/$pkg
+ if [ -f PKGBUILD ]; then
+ . PKGBUILD
+ deplist=${depends[@]}
+ sources=${source[@]}
+ echo $pkgname
+ echo $pkgver
+ echo $pkgrel
+ echo $pkgdesc
+ echo $category
+ echo $url
+ echo $sources
+ echo $deplist
+ fi
+ cd $tl
+ done
+done
+
+exit 0
+