Fix end-of-stringstream logic to not miss the last line.
[libsub.git] / cscript
diff --git a/cscript b/cscript
index 6ad0775e7202cbbdc9cb1f9829510390f6c7e16b..2b9e81782c629846ec53274766c28732622df024 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,7 +1,7 @@
 import os
 
 def dependencies(target):
-    return (('libdcp', 'bff6a34'),)
+    return (('asdcplib-cth', 'd2042ad'), ('libcxml', 'v0.15.1'))
 
 def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
@@ -9,6 +9,8 @@ def build(target, options):
         cmd += ' --static'
         if target.distro == 'centos':
             cmd += ' --disable-tests'
+        if (target.distro == 'debian' and target.version == 'unstable' or target.distro == 'fedora' and target.version == '23'):
+            target.append_with_space('CXXFLAGS', '-std=c++11')
     if target.debug:
         cmd += ' --enable-debug'
     if target.platform == 'windows':
@@ -22,7 +24,10 @@ def make_doxygen(target):
     target.command('doxygen')
     return os.path.abspath('build/doc/html')
 
-def test(target):
+def test(target, test):
     if target.platform != 'windows':
         target.set('LC_ALL', 'C')
-        target.command('run/tests')
+        if test is None:
+            target.command('run/tests')
+        else:
+            target.command('run/tests --run_test=%s' % test)