#!/bin/bash
BASE=$PWD

#for dd in $(ls -d *); do
for dd in aur; do
	rm ${BASE}/$dd/$dd.db*
	rm ${BASE}/$dd/$dd.files*
        for pkg in $(ls ${BASE}/$dd/*.pkg.tar.*); do
                repo-add ${BASE}/$dd/$dd.db.tar.xz $pkg
        done
done
