Skip to content

Instantly share code, notes, and snippets.

@ibrahima
Created August 18, 2011 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrahima/1155414 to your computer and use it in GitHub Desktop.
Save ibrahima/1155414 to your computer and use it in GitHub Desktop.
Rosco.bash - my ros.org checkout tool
#!/usr/bin/env bash
URI=$(roslocate uri $1)
VCS=$(roslocate vcs $1)
echo $VCS $URI
case $VCS in
'svn')
svn co $URI
;;
'git')
git clone $URI
;;
'hg')
hg clone $URI
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment