#!/bin/bash


genrepo () {
	pushd .
	echo Generating/signing $1
	cd $1
	./genrepo.sh
	popd
}


genrepo mga5
genrepo licensed/mga5
genrepo licensed/enb/mga5
genrepo unstable/mga5
genrepo unstable/enb/mga5

echo Generating the top-level index.
./genrepo5.sh

echo Synching to repoman
rsync --delete -avz --exclude 'speedtest*' /var/www/html/* signer@192.168.50.2:/data/repoman_webroot
