#!/bin/sh rm -rf */prereq cp -r ~/git/make_repo_from_scratch_6.1_branch/platform_independent/* . find . -name repodata -type d | while read repo; do repo=$(dirname $repo) createrepo -d $repo repoview $repo yum-arch $repo rm $repo/repodata/repomd.xml.asc gpg -ab $repo/repodata/repomd.xml done