Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Echo and pbcopy the URL for the given SVN working copy
- # Usage: svnurl [path]
- # Add to your ~/.profile
- function svnurl {
- if [ $# == 0 ]; then
- cwd=`pwd`
- else
- cwd="$1"
- fi
- url=`svn info "$cwd" | grep 'URL:' | cut -c6-`
- echo $url | perl -e 'while(<>){ chomp; print; }' | pbcopy
- echo $url
- }
Add Comment
Please, Sign In to add comment