cscript tweaks.
authorCarl Hetherington <cth@carlh.net>
Wed, 24 Apr 2013 15:04:38 +0000 (16:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 24 Apr 2013 15:04:38 +0000 (16:04 +0100)
cbuild [deleted file]
cscript

diff --git a/cbuild b/cbuild
deleted file mode 100755 (executable)
index 836daba..0000000
--- a/cbuild
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/python
-
-import argparse
-import os
-
-parser = argparse.ArgumentParser()
-parser.add_argument('command')
-parser.add_argument('-p', '--prefix', help='prefix', required=True)
-parser.add_argument('-s', '--static', help='build statically', action='store_true')
-args = parser.parse_args()
-
-def command(c):
-    print c
-    os.system(c)
-
-if args.command == 'build':
-    cmd = './waf configure --prefix=%s' % args.prefix
-    if args.static:
-        cmd += ' --static-libdcp --static-openjpeg'
-    cmd += ' build install'
-    command(cmd)
diff --git a/cscript b/cscript
index 3510f70921f955d17adfae603979ecfb8361d8a1..468b4b4d10ce7030baf5fd5b8167f829b72aeadb 100644 (file)
--- a/cscript
+++ b/cscript
@@ -9,9 +9,9 @@ def build(env, target):
     env.command('./waf build install')
 
 def make_doxygen(env):
-    env.command('doxygen')
     try:
         os.makedirs('build/doc')
     except:
         pass
+    env.command('doxygen')
     return os.path.abspath('build/doc/html')