Skip to content

Instantly share code, notes, and snippets.

@fcy
Created July 23, 2012 22:07
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 fcy/3166541 to your computer and use it in GitHub Desktop.
Save fcy/3166541 to your computer and use it in GitHub Desktop.
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