Created
July 23, 2012 22:07
-
-
Save fcy/3166541 to your computer and use it in GitHub Desktop.
Fix git-svn on Mountain Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Fix git-svn on Mountain Lion | |
# Author: Felipe Cypriano <[email protected]≥ | |
# Based on Vitor Quinn blog post: | |
# http://victorquinn.com/blog/2012/02/19/fix-git-svn-in-mountain-lion/ | |
# If you do not have xcode-select pointing to the right Xcode installation | |
# put the right path in the line bellow and uncoment it | |
#sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
xcode_svn_path=`xcode-select --print-path`/Library/Perl/5.12/darwin-thread-multi-2level/SVN | |
paths_to_link=("/System/Library/Perl/Extras/5.12/SVN" "/System/Library/Perl/Extras/5.12/auto/SVN") | |
for path in "${paths_to_link[@]}" | |
do | |
sudo rm $path | |
echo "linking $xcode_svn_path to $path" | |
sudo ln -s $xcode_svn_path $path | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment