Advertisement
Guest User

Untitled

a guest
Apr 25th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # as PWD can be overwritten, fetch the current location old school
  2. base=`readlink -f .`
  3.  
  4. func_fetch ()
  5. {
  6. if [ ! -d '$file_dir' ]; then
  7. echo syncing $project from $location to directory $file_dir
  8. git clone $location$project -b $branch $file_dir
  9. else
  10. echo updating $project from $location in directory $file_dir
  11. git --git-dir=$file_dir/.git pull
  12. fi
  13. }
  14.  
  15. project='TODO-List'
  16. location=https://github.com/Cafogen/
  17. branch=master
  18. file_dir=TODO
  19. func_fetch
  20.  
  21. project=android_packages_apps_Camera
  22. location=https://github.com/Cafogen/
  23. branch=cm-10.1
  24. file_dir=packages/apps/Camera
  25. func_fetch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement