Skip to content

Instantly share code, notes, and snippets.

@abaez
Created April 4, 2013 18:45
Show Gist options
  • Save abaez/5313025 to your computer and use it in GitHub Desktop.
Save abaez/5313025 to your computer and use it in GitHub Desktop.
A quick build process for qmake on Qt
#!/usr/bin/env python
import os,subprocess,shutil
def move():
return input("Give me the directory of work.\n")
def build():
if os.path.exists("./build"):
shutil.rmtree("./build")
os.mkdir("build")
os.chdir("./build")
return run()
def run():
os.system("qmake-qt4 -project ../; vim *pro")
os.system("qmake-qt4 *pro; make")
subprocess.Popen("./build")
os.chdir(move())
build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment