#!/bin/bash -e

. /etc/repoman.conf

ver=$(readlink /pub/frugalware/frugalware-stable|sed 's/frugalware/maint/')
for i in current stable
do
	cd $fst_root/$i
	[ "$i" = "current" ] && git fetch /pub/frugalware/frugalware-stable master:${ver%%/}
done

cd /pub/other/homepage-ng/git/repos
for i in *
do
	cd $i
	echo $i
	git push --mirror github:frugalware/$i.git
	cd -
done
