-
-
Save tzarskyz/9522020 to your computer and use it in GitHub Desktop.
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 | |
tmsupportpath="/Library/Application Support/TextMate" | |
bundlepath="$tmsupportpath/Bundles" | |
if [ ! -d "$bundlepath" ] | |
then | |
echo "First time, eh? Making $bundlepath..." | |
mkdir -p "$bundlepath" | |
fi | |
if [ ! -d "$tmsupportpath/Support" ] | |
then | |
cd "$tmsupportpath" | |
echo "Checking out the most recent Support folder..." | |
svn co http://macromates.com/svn/Bundles/trunk/Support | |
fi | |
cd "$bundlepath" | |
svn co http://macromates.com/svn/Bundles/trunk/Bundles/$1.tmbundle | |
svn up *.tmbundle | |
osascript -e 'tell app "TextMate" to reload bundles' | |
cd "$tmsupportpath/Support" | |
svn up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment