Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $plugins = explode(' ','HighlightEditables GCN Format Link List Table Image Annotations');
- $pwd = $_SERVER['PWD'];
- foreach ( $plugins as $plugin ) {
- $name = "Aloha-Plugin-$plugin";
- $dir = "com.gentics.aloha.plugins.$plugin";
- $path = "WebContent/plugins/$dir";
- $repo = "git@github.com:alohaeditor/$name.git";
- echo "Setting Up: $name
- dir: $dir
- path: $path
- repo: $repo\n";
- $commands = "
- cd $pwd;
- rm -Rf $name;
- cp -Rp $pwd/Aloha-Editor $pwd/$name;
- cd $pwd/$name;
- git reset --hard;
- git filter-branch --subdirectory-filter $path -- --all;
- git remote rm origin ;
- git remote add origin $repo ;
- git push origin master ;
- cd $pwd;
- ";
- echo $commands;
- system($commands);
- }
Add Comment
Please, Sign In to add comment