summaryrefslogtreecommitdiff
path: root/cbuild
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-18 00:26:44 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-18 00:26:44 +0100
commit178fadde4c7b4c0816f06ead30030fa29e7d13c7 (patch)
tree9cb141456e4b1f457b09c53746a72014dfc563a1 /cbuild
parent3d88bdfd57f4f8a1a716ec0f7f7ab9438af9299d (diff)
cdist tinkering.
Diffstat (limited to 'cbuild')
-rwxr-xr-xcbuild16
1 files changed, 16 insertions, 0 deletions
diff --git a/cbuild b/cbuild
new file mode 100755
index 00000000..59beeb13
--- /dev/null
+++ b/cbuild
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+
+import argparse
+import os
+
+parser = argparse.ArgumentParser()
+parser.add_argument('command')
+parser.add_argument('-p', '--prefix', help='prefix', required=True)
+args = parser.parse_args()
+
+def command(c):
+ print c
+ os.system(c)
+
+if args.command == 'build':
+ command('./waf configure --prefix=%s build install' % args.prefix)