Skip to content

Instantly share code, notes, and snippets.

@fcy

fcy/fix-git-svn.sh

Created Jul 23, 2012
Embed
What would you like to do?
Fix git-svn on Mountain Lion
#! /bin/bash
# Fix git-svn on Mountain Lion
# Author: Felipe Cypriano <felipe@cypriano.me≥
# 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