123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/usr/bin/python
- class fastbuild():
- import sys, os, json
- def __init__(self, filename):
- if filename == None:
- self.filename = "Build.json"
- else:
- self.filename = filename
- self.filehandle = open(self.filename, "r")
- self.rules = json.load(self.filehandle)
- def looprules(self):
- for rule in self.rules:
- self.applyrule(rule)
- def applyrule(self, rule):
- ...
- def build(self, rule):
- ...
- def install(self, rule):
- ...
- def run(self, rule):
- ...
- def define(self, rule):
- ...
-
- # rulesfile = open("Build.json", "r")
- # rules = json.load(filehandle)
- if __name__ == __main__:
- import argparse
|