summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2002-03-19 01:17:28 +0100
committerJudd Vinet <judd@archlinux.org>2002-03-19 01:17:28 +0100
commite322cffb28883e85593b6e458ccd2feae417b1b8 (patch)
treee4566b4a42b6ab6e4c0f2eec9e08cecc90063d92
parent4c798bbe91c98149672f9088c4b120a8ca96e95a (diff)
downloaddbscripts-e322cffb28883e85593b6e458ccd2feae417b1b8.tar.gz
dbscripts-e322cffb28883e85593b6e458ccd2feae417b1b8.tar.xz
Updated packages
-rwxr-xr-xgenpkglist10
1 files changed, 6 insertions, 4 deletions
diff --git a/genpkglist b/genpkglist
index 0999592..5abe496 100755
--- a/genpkglist
+++ b/genpkglist
@@ -4,11 +4,13 @@ tl=`pwd`
for category in {base,opt,contrib}; do
echo $category >>packages.txt
- for pkg in `ls $category`; do
+ for pkg in `ls $category | sort`; do
cd $tl/$category/$pkg
- . PKGBUILD
- cd $tl
- echo " $pkgname $pkgver" >>packages.txt
+ if [ -f PKGBUILD ]; then
+ . PKGBUILD
+ cd $tl
+ echo " $pkgname $pkgver" >>packages.txt
+ fi
done
cd $tl
echo "" >>packages.txt