#!/usr/bin/env bash
set -euo pipefail

set -x

echo "Change the name first!" >&2
exit 1

readonly name="maaze"

readonly tmpDir=/tmp/update-github-$name
mkdir -p $tmpDir
trap "rm -rf $tmpDir" EXIT

git clone bzr::http://code.alaiwan.org/bzr/games/$name $tmpDir/repo
cd $tmpDir/repo
git remote add github https://github.com/Ace17/$name.git
git push -f github
