Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.64 KB | None | 0 0
  1. #! /bin/sh
  2. # Script that batch adds git subtrees from a set of GitHub libraries
  3.  
  4. for a in JakeWharton/ActionBarSherlock keyboardsurfer/Crouton nostra13/Android-Universal-Image-Loader bauerca/drag-sort-listview iPaulPro/aFileChooser nhaarman/ListViewAnimations
  5. do
  6.         b=`echo "$a" | sed "s#^[^/]*/##"`
  7.         echo "Managing: $b (from GitHub project '$a')"
  8.         git remote add -f $b https://github.com/$a
  9.         git merge -s ours --no-commit $b/master
  10.         git read-tree --prefix=vendor/$b/ -u $b/master
  11.         git commit -m "Merged '$b' into vendor/$b/ as a dependency"
  12.         echo "-----------------------------------------"
  13. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement