Created
October 21, 2011 19:37
-
-
Save davejohnson/1304731 to your computer and use it in GitHub Desktop.
cleanup
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 | |
platforms=(phonegap phonegap-qt weinre mobile-spec phonegap-docs phonegap-mac phonegap-bada phonegap-wp7 phonegap-webos phonegap-blackberry-webworks phonegap-iphone phonegap-symbian.wrt phonegap-android) | |
for i in ${!platforms[*]} | |
do | |
# clone down the repo | |
git clone "[email protected]:phonegap/${platforms[$i]}.git" | |
# go into the dir | |
cd "${platforms[$i]}" | |
# remove everything | |
git rm -r * | |
# write out a readme | |
cat > README.md <<eom | |
## PhoneGap has been accepted into the Apache Software Foundation | |
for incubation as Apache Callback, where it will remain free and open source. | |
This will ensure open, independent stewardship of the project over the long term. | |
--- | |
You can now find all the code at the Apache Incubator Callback Project repository on GitHub [http://github.com/callback](http://github.com/callback). Please add it as a remote to keep up to date and/or contribute during the incubation period. Thank you for your patience during this transition! | |
--- | |
More information on Apache Incubator Callback Project and the incubation process can be found here: | |
[http://incubator.apache.org/projects/callback.html](http://incubator.apache.org/projects/callback.html) | |
eom | |
# add the readme to the repo | |
git add README.md | |
# commit the deletes and the readme | |
git commit -m "Moving code to Apache!" | |
# push it up! | |
git push "[email protected]:phonegap/${platforms[$i]}.git" master | |
# back where we started | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment