I lost motivation to work on this for now. The code is here if you want to take a look.
Build systems for JavaC and CC (C/C++) for Mac OS X and Sublime Text 2. A blog post about this repository is at my site.
- Open Terminal.app and call
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
- Now you need to checkout the repository
git clone git://github.com/cspiegl/SublimeText2-BuildSystems.git
- Change Directory to the newly cloned repository
cd ./SublimeText2-BuildSystems
- Give the bash scripts right to be ran
chmod 755 javacRun.sh ccRun.sh
- Restart Sublime Text 2
- For the C++ build system, you need the Xcode Command Line Tools installed!