SublimeText/LaTeXTools — pull request #26 by carlosvpp (2012-03-28 16:31:58+00:00)
Title: I've added a couple of lines to delete "temp" files before compiling.

file_name_comp = os.path.splitext(self.caller.file_name)
temp_exts = ['.blg','.bbl','.aux','.log','.dvi','.ps','.fdb_latexmk','.pdfsync','.synctex.gz']
for temp_ext in temp_exts:
file_name_to_del = file_name_comp[0] + temp_ext
if os.path.exists(file_name_to_del):
os.remove(file_name_to_del)
self.caller.output("\n[Delete " + file_name_to_del + "]")