Created
November 11, 2009 06:51
-
-
Save dlo/231722 to your computer and use it in GitHub Desktop.
Shorthand for Go compilation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from os import system | |
prog = sys.argv[1] | |
pos = prog.find(".") | |
name = prog[:pos] | |
system("8g " + prog) | |
system("8l -o %s.out %s.8" % (name, name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment