erlang TextMate Bundle
I found this post containing a script that svn checkouts a fairly functional erlang TextMate bundle. Neat-o!
I edited the bundle to allow it to update itself, using a slightly modified form of the original script.
- Bundles->Bundle Editor->Show Bundle Editor
- Click on the menu entry text “erlang”
- Drag a new separator to the bottom of the erlang bundle menu structure
- Expand the erlang bundle menu
- Use the drop-down + to create a new command
-
- Save: Nothing
-
Command(s):
Code (bash)
-
#!/bin/bash
-
-
if [ -z "${TM_SVN}" ]; then
-
echo "You must define the location of your svn client in the variable TM_SVN."
-
exit 1
-
fi
-
-
echo "Changing to Bundles directory…"
-
mkdir -p /Library/Application\ Support/TextMate/Bundles
-
cd /Library/Application\ Support/TextMate/Bundles
-
-
if [ -d /Library/Application\ Support/TextMate/Bundles/Erlang.tmbundle ]; then
-
echo Erlang bundle already exists - updating…
-
$TM_SVN up Erlang.tmbundle
-
else
-
echo Checking out Erlang bundle…
-
$TM_SVN –username anon –password anon co http://macromates.com/svn/Bundles/trunk/Bundles/Erlang.tmbundle/
-
fi
-
-
echo "Reloading bundles in TextMate…"
-
osascript -e ‘tell app "TextMate" to reload bundles’
-
-
exit 0
-
- Input: None
- Output: Show as Tool Tip
Now you can update the bundle from it’s own menu option!