forked from insertinterestingnamehere/numerical_computing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakevol.py
27 lines (20 loc) · 738 Bytes
/
makevol.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import make_util
def main(args):
for f in make_util.run_seq:
ret = f(args.vol)
if ret.returncode != 0:
break
if ret.returncode == 0:
print "Success!"
else:
#copy template.log to copydest
print "{} could not be generated".format(args.vol)
if __name__ == "__main__":
import argparse
descr = """
Makelab - An automated lab compiler.
This will compile a selected volume of labs with references and output a pdf file in the main directory.
"""
parser = argparse.ArgumentParser(description=descr)
parser.add_argument('vol', action='store', help="Volume to generate with references")
main(parser.parse_args())