Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # as PWD can be overwritten, fetch the current location old school
- base=`readlink -f .`
- func_fetch ()
- {
- if [ ! -d '$file_dir' ]; then
- echo syncing $project from $location to directory $file_dir
- git clone $location$project -b $branch $file_dir
- else
- echo updating $project from $location in directory $file_dir
- git --git-dir=$file_dir/.git pull
- fi
- }
- project='TODO-List'
- location=https://github.com/Cafogen/
- branch=master
- file_dir=TODO
- func_fetch
- project=android_packages_apps_Camera
- location=https://github.com/Cafogen/
- branch=cm-10.1
- file_dir=packages/apps/Camera
- func_fetch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement