Guest User

Untitled

a guest
Jun 18th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. $plugins = explode(' ','HighlightEditables GCN Format Link List Table Image Annotations');
  4.  
  5. $pwd = $_SERVER['PWD'];
  6.  
  7. foreach ( $plugins as $plugin ) {
  8. $name = "Aloha-Plugin-$plugin";
  9. $dir = "com.gentics.aloha.plugins.$plugin";
  10. $path = "WebContent/plugins/$dir";
  11. $repo = "git@github.com:alohaeditor/$name.git";
  12.  
  13. echo "Setting Up: $name
  14. dir: $dir
  15. path: $path
  16. repo: $repo\n";
  17.  
  18. $commands = "
  19. cd $pwd;
  20. rm -Rf $name;
  21. cp -Rp $pwd/Aloha-Editor $pwd/$name;
  22. cd $pwd/$name;
  23. git reset --hard;
  24. git filter-branch --subdirectory-filter $path -- --all;
  25. git remote rm origin ;
  26. git remote add origin $repo ;
  27. git push origin master ;
  28. cd $pwd;
  29. ";
  30.  
  31. echo $commands;
  32. system($commands);
  33. }
Add Comment
Please, Sign In to add comment