Skip to content

Instantly share code, notes, and snippets.

@dlo
Created November 11, 2009 06:51
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 dlo/231722 to your computer and use it in GitHub Desktop.
Save dlo/231722 to your computer and use it in GitHub Desktop.
Shorthand for Go compilation.
#!/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