Fix cscript.
authorCarl Hetherington <cth@carlh.net>
Wed, 24 Apr 2013 23:07:24 +0000 (00:07 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 24 Apr 2013 23:07:24 +0000 (00:07 +0100)
cscript

diff --git a/cscript b/cscript
index 0a04589d96f5207cba32d96674be60ced0cafcb3..5e7c29f62a4f95ff9edeb21916eab34cbed26500 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,2 +1,9 @@
-builds = ['source']
+
+def build(env, target):
+    cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
+    if target.platform == 'windows':
+        cmd += ' --target-windows'
+    env.command(cmd)
+    env.command('./waf build install')
+