cscript tweaks.
authorCarl Hetherington <cth@carlh.net>
Tue, 18 Jun 2013 14:08:47 +0000 (15:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 Jun 2013 14:08:47 +0000 (15:08 +0100)
cscript

diff --git a/cscript b/cscript
index 5413fdbc4ca6bf61b745d1bf5d8e5f62322c6a52..30fd4aa63ff40326d48bb7b1e7768cf8aa60b710 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,17 +1,17 @@
 import os
 
-def build(env, target):
-    cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
+def build(target):
+    cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
     if target.platform == 'linux':
         cmd += ' --static-libdcp --static-openjpeg'
     elif target.platform == 'windows':
         cmd += ' --target-windows'
     elif target.platform == 'osx':
         cmd += ' --osx'
-    env.command(cmd)
-    env.command('./waf build install')
+    target.command(cmd)
+    target.command('./waf build install')
 
 def make_doxygen(env):
     os.makedirs('build/doc')
-    env.command('doxygen')
+    target.command('doxygen')
     return os.path.abspath('build/doc/html')