build.py 702 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/python
  2. class fastbuild():
  3. import sys, os, json
  4. def __init__(self, filename):
  5. if filename == None:
  6. self.filename = "Build.json"
  7. else:
  8. self.filename = filename
  9. self.filehandle = open(self.filename, "r")
  10. self.rules = json.load(self.filehandle)
  11. def looprules(self):
  12. for rule in self.rules:
  13. self.applyrule(rule)
  14. def applyrule(self, rule):
  15. ...
  16. def build(self, rule):
  17. ...
  18. def install(self, rule):
  19. ...
  20. def run(self, rule):
  21. ...
  22. def define(self, rule):
  23. ...
  24. # rulesfile = open("Build.json", "r")
  25. # rules = json.load(filehandle)
  26. if __name__ == __main__:
  27. import argparse