I have various shell build scripts for a project and want to create one centralized build system with options that will allow which shell script to run. For example, a user presses Cmd + B then the user is given the option:
1) shellscript1.sh
2) shellscript2.sh
3) shellscript3.sh
The user presses 3 and Sublime Text runs ‘sh shellscript3.sh’.
I’ve been reading http://sublimetext.info/docs/en/reference/build_systems.html, but am unsure how to integrate this option in the JSON code for the Sublime Text build system.
How do you accomplish this in a build system in Sublime Text 2?
Thanks!
I ended up making my own plugin and placed the following in run():
I based it off of the code of this Git Support plugin: https://github.com/notanumber/gitst2