SHARE
TWEET

Untitled

a guest Apr 25th, 2013 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top