summaryrefslogtreecommitdiffstats
path: root/genpkglist
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2002-03-16 09:01:37 +0100
committerJudd Vinet <judd@archlinux.org>2002-03-16 09:01:37 +0100
commit4c798bbe91c98149672f9088c4b120a8ca96e95a (patch)
treebac6985f53805ecb894c57144df96ee7aa286d92 /genpkglist
downloaddbscripts-4c798bbe91c98149672f9088c4b120a8ca96e95a.tar.gz
dbscripts-4c798bbe91c98149672f9088c4b120a8ca96e95a.tar.xz
Added script genpkglist
Diffstat (limited to 'genpkglist')
-rwxr-xr-xgenpkglist15
1 files changed, 15 insertions, 0 deletions
diff --git a/genpkglist b/genpkglist
new file mode 100755
index 0000000..0999592
--- /dev/null
+++ b/genpkglist
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+tl=`pwd`
+
+for category in {base,opt,contrib}; do
+ echo $category >>packages.txt
+ for pkg in `ls $category`; do
+ cd $tl/$category/$pkg
+ . PKGBUILD
+ cd $tl
+ echo " $pkgname $pkgver" >>packages.txt
+ done
+ cd $tl
+ echo "" >>packages.txt
+done