Monday, September 22, 2008

Textmate GetBundle - Installer Shell Script

The web site that hosts GetBundle appears to be down. Here’s the shell script to install it from the Macromates site. Save it to a file, and grant execute perms:

$ chmod u+x textmate_install_getbundle.sh

$ ./textmate_install_getbundle.sh

Here’s the script…

#!/bin/shLC_CTYPE=en_US.UTF-8SVN=`which svn`echo Changing to Bundles directory...mkdir -p /Library/Application Support/TextMate/Bundlescd /Library/Application Support/TextMate/Bundlesif [ -d /Library/Application Support/TextMate/Bundles/GetBundle.tmbundle ]; then echo GetBundle bundle already exists - updating... $SVN up GetBundle.tmbundleelse echo Checking out GetBundle bundle... $SVN --username anon --password anon co http://macromates.com/svn/Bundles/trunk/Bundles/GetBundle.tmbundle/fiecho Reloading bundles in TextMate...osascript -e 'tell app "TextMate" to reload bundles'

No comments:

Post a Comment