#!/bin/bash if [ $# -ne 2 ]; then echo "usage: $(basename $0) " exit 1 fi reponame=$1 arch=$2 ##### Arch specific stuff. TODO make this configurable ##### ftppath="/home/ftp/$reponame/os/$arch/" ############################################################ if [ ! -d "$ftppath" ]; then echo "FTP path '$ftppath' does not exist" exit 1 fi if [ ! -f /etc/makepkg.conf ]; then echo "/etc/makepkg.conf not found! Aborting" exit 1 fi . /etc/makepkg.conf cd "$ftppath" ls -1 *$PKGEXT