#!/bin/bash # $Id: genpkglist,v 1.7 2003/05/25 23:50:02 judd Exp $ # # genpkglist # # Generates a text package database for use with the setup script # pkgfile="`pwd`/packages.txt" rm -f $pkgfile for category in `find * -type d -maxdepth 0 | grep -v CVS`; do cd $category for pkg in `/bin/ls`; do cd $pkg if [ -f PKGBUILD ]; then . PKGBUILD if [ -f /home/ftp/current/$pkgname-$pkgver-$pkgrel.pkg.tar.gz ]; then echo "$category/$pkgname-$pkgver-$pkgrel.pkg.tar.gz" >>$pkgfile else echo "notice: Missing $pkgname-$pkgver-$pkgrel.pkg.tar.gz in ftp site" >&2 fi fi cd .. done cd .. done