Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
migration script for yiiext from google-code to github
(no author) = nobody <nobody@cebe.cc>
Ekstazyst = ekstazyst <ekstazyst@gmail.com>
alexander.makarow = samdark <sam@rmcreative.ru>
andrey.artemov = Andrey Artemov <andrey.artemov@gmail.com>
cebe.cc = CeBe <mail@cebe.cc>
creocoder = Alexander Kochetov <creocoder@gmail.com>
dropsql@gmail.com = dropsql <dropsql@gmail.com>
ekstazyst = ekstazyst <ekstazyst@gmail.com>
ekstazyst@gmail.com = ekstazyst <ekstazyst@gmail.com>
maksimgrib = maksimgrib <maksimgrib@gmail.com>
mrakobesov = Aleksey Kuznetsov <mrakobesov@gmail.com>
rak.kture@gmail.com = rak.kture <rak.kture@gmail.com>
slavcopost = Veaceslav Medvedev <slavcopost@gmail.com>
slavcopost@gmail.com = Veaceslav Medvedev <slavcopost@gmail.com>
vladimir.seleznev = Vladimir Seleznev <vladimir.seleznev@gmail.com>
#!/bin/sh
git config user.name "CeBe"
git config user.email mail@cebe.cc
#!/bin/sh
#
git svn clone --prefix=svn/ --authors-file=authors.txt --stdlayout http://yiiext.googlecode.com/svn/ core
cd core
git rm -r app/extensions/yiiext/*
git submodule add https://github.com/yiiext/quicky-renderer app/extensions/yiiext/renderers/quicky
git submodule add https://github.com/yiiext/twig-renderer app/extensions/yiiext/renderers/twig
git submodule add https://github.com/yiiext/dwoo-renderer app/extensions/yiiext/renderers/dwoo
git submodule add https://github.com/yiiext/smarty-renderer app/extensions/yiiext/renderers/smarty
git submodule add https://github.com/yiiext/webshell-module app/extensions/yiiext/modules/webshell
git submodule add https://github.com/yiiext/taggable-behavior app/extensions/yiiext/behaviors/model/taggable
git submodule add https://github.com/yiiext/migrate-command app/extensions/yiiext/commands/migrate
git submodule add https://github.com/yiiext/status-behavior app/extensions/yiiext/behaviors/model/status
git submodule add https://github.com/yiiext/ensure-null-behavior app/extensions/yiiext/behaviors/model/ensureNull
git submodule add https://github.com/yiiext/nested-set-behavior app/extensions/yiiext/behaviors/model/trees
git submodule add https://github.com/yiiext/trash-bin-behavior app/extensions/yiiext/behaviors/model/trashBin
git submodule add https://github.com/yiiext/eav-behavior app/extensions/yiiext/behaviors/model/eav
git submodule add https://github.com/yiiext/zii-image-column app/extensions/yiiext/zii/widgets/grid/imageColumn
git submodule add https://github.com/yiiext/uploadify-widget app/extensions/yiiext/widgets/uploadify
git submodule add https://github.com/yiiext/markitup-widget app/extensions/yiiext/widgets/markitup
git submodule add https://github.com/yiiext/iconized-menu-widget app/extensions/yiiext/widgets/iconizedMenu
git submodule add https://github.com/yiiext/simplemodal-widget app/extensions/yiiext/widgets/simplemodal
git submodule add https://github.com/yiiext/imperavi-redactor-widget app/extensions/yiiext/widgets/imperaviRedactor
git submodule add https://github.com/yiiext/fancybox-widget app/extensions/yiiext/widgets/fancybox
git submodule add https://github.com/yiiext/blueprint-widget app/extensions/yiiext/widgets/blueprint
git submodule add https://github.com/yiiext/active-form-validation-filter app/extensions/yiiext/filters/activeFormValidation
git submodule add https://github.com/yiiext/forgery-session-filter app/extensions/yiiext/filters/forgerySession
git submodule add https://github.com/yiiext/set-return-url-filter app/extensions/yiiext/filters/setReturnUrl
git submodule add https://github.com/yiiext/breadcrumbs-component app/extensions/yiiext/components/breadCrumbs
git submodule add https://github.com/yiiext/chm-component app/extensions/yiiext/components/chm
git submodule add https://github.com/yiiext/filesystem-component app/extensions/yiiext/components/filesystem
git submodule add https://github.com/yiiext/form-component app/extensions/yiiext/components/form
git submodule add https://github.com/yiiext/image-validator-component app/extensions/yiiext/components/imageValidator
git submodule add https://github.com/yiiext/phpdoc-component app/extensions/yiiext/components/phpDoc
git submodule add https://github.com/yiiext/shopping-cart-component app/extensions/yiiext/components/shoppingCart
git submodule add https://github.com/yiiext/translit-filter app/extensions/yiiext/components/translit
git submodule add https://github.com/yiiext/zend-autoloader-component app/extensions/yiiext/components/zendAutoloader
git submodule add https://github.com/yiiext/get-url-behavior app/extensions/yiiext/behaviors/model
git submodule add https://github.com/yiiext/commentable-behavior app/extensions/yiiext/behaviors/model
git submodule add https://github.com/yiiext/file-upload-action app/extensions/yiiext/actions/fileUpload
git submodule add https://github.com/yiiext/last-value-behavior app/extensions/yiiext/behaviors/model
git submodule add https://github.com/yiiext/menu-widget app/extensions/yiiext/widgets/menu
git submodule add https://github.com/yiiext/lipsum-widget app/extensions/yiiext/widgets/lipsum
git submodule add https://github.com/yiiext/elfinder-widget app/extensions/yiiext/widgets/elfinder
git submodule add https://github.com/yiiext/cycle-widget app/extensions/yiiext/widgets/cycle
git submodule add https://github.com/yiiext/ckeditor-widget app/extensions/yiiext/widgets/ckeditor
git submodule add https://github.com/yiiext/carousel-widget app/extensions/yiiext/widgets/carousel
git submodule add https://github.com/yiiext/swf-object-widget app/extensions/yiiext/widgets/swfobject
../gcown.sh
git ci -m "replaced all extensions with the submodule-repositories on github"
git remote add origin git@github.com:yiiext/core.git
git push -u origin master
cd ..
#!/bin/sh
#
# first param is name - example: migrate
# second param is path - example: yiiext/commands/migrate
echo "starting to clone extension $1 from svn..."
git svn clone --prefix=svn/ --authors-file=authors.txt --trunk=trunk/app/extensions/$2 http://yiiext.googlecode.com/svn/ $1
cd $1
echo "add remote repository on github..."
git remote add origin git@github.com:yiiext/$1.git
../gcown.sh
ln -s readme_en.txt README.md
git add README.md
git ci -m "linked README for github"
git log
echo "pushing data to github..."
git push -u origin master
echo "done."
cd ..
Owner

cebe commented Aug 18, 2011

This is the script I migrated the yiiext svn repo(http://code.google.com/p/yiiext/) to @yiiext on github, where every single extension has its own repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment