October 14th, 2008
Simple Shell Script for Installing TextMate Bundles
You need to have svn installed, of course. If you want to improve it, here’s the gist.
#!/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 |