Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dpo
Created March 11, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpo/9487568 to your computer and use it in GitHub Desktop.
Save dpo/9487568 to your computer and use it in GitHub Desktop.
Sublime Text Multi-Build System: Run Several Build Systems in Sequence and Reset to Last One
import sublime_plugin
class RunLatexBuildCommand(sublime_plugin.WindowCommand):
def run(self, build_systems=None):
if build_systems is None:
return
reset_to = build_systems[-1]
for build_system in build_systems[:-1]:
self.window.run_command( "set_build_system", {"file": build_system } )
self.window.run_command( "build" )
self.window.run_command( "set_build_system", {"file": reset_to})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment