#!/bin/sh

rm -rf */prereq
cp -r ~/git/make_repo_from_scratch/platform_independent/* .

find . -name repodata -type d | while read repo;
do
    repo=$(dirname $repo)
    createrepo $repo
    #yum-arch $repo
    rm $repo/repodata/repomd.xml.asc
    gpg -ab $repo/repodata/repomd.xml
done
