summaryrefslogtreecommitdiff
path: root/cbuild
blob: 59beeb13fde9f4205e88c59cbd7a237f467bf932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)