Created
October 21, 2011 17:50
-
-
Save brianleroux/1304472 to your computer and use it in GitHub Desktop.
dont worry about it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
set -e | |
news=(callback-qt callback-weinre callback-test callback-docs callback-mac callback-bada callback-windows-phone callback-webos callback-blackberry) | |
olds=(phonegap-qt weinre mobile-spec phonegap-docs phonegap-mac phonegap-bada phonegap-wp7 phonegap-webos phonegap-blackberry-webworks) | |
for i in ${!olds[*]} | |
do | |
# clone down the old repo | |
git clone "http://github.com/phonegap/${olds[$i]}" | |
# jump into the local repo | |
cd "${olds[$i]}" | |
# add as remote | |
git remote add cb "[email protected]:callback/${news[$i]}.git" | |
# push old to new | |
git push cb master | |
# push tags too | |
git push cb --tags | |
# start over | |
cd ../ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment