add copy-svn-path.sh

This commit is contained in:
Josh Holtrop 2012-02-29 16:13:01 -05:00
parent dd13c90c0b
commit 5614a8c34b

8
windows/copy-svn-path.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# This script can be added to the Windows right-click context menu for all
# files to provide a "Copy SVN URL" function
export PATH=/cygdrive/c/cygwin/bin:$PATH
fname="$1"
uname=$(cygpath -u "$fname")
pth=$(svn info "$uname" 2>/dev/null | grep '^URL:' | sed -re 's/^URL:.//')
echo -n "$pth" | clip