Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51227 - trunk/tools/build/v2/test
From: steven_at_[hidden]
Date: 2009-02-12 14:10:40


Author: steven_watanabe
Date: 2009-02-12 14:10:40 EST (Thu, 12 Feb 2009)
New Revision: 51227
URL: http://svn.boost.org/trac/boost/changeset/51227

Log:
Fix generator_selection on windows
Text files modified:
   trunk/tools/build/v2/test/generator_selection.py | 10 +++++++++-
   1 files changed, 9 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/test/generator_selection.py
==============================================================================
--- trunk/tools/build/v2/test/generator_selection.py (original)
+++ trunk/tools/build/v2/test/generator_selection.py 2009-02-12 14:10:40 EST (Thu, 12 Feb 2009)
@@ -36,11 +36,19 @@
 
     t.write("Other/mygen.jam", """
 import generators ;
+import os ;
 import type ;
 type.register MY_TYPE : extension ;
 generators.register-standard mygen.generate-a-cpp-file : MY_TYPE : CPP ;
 rule generate-a-cpp-file { ECHO Generating a CPP file... ; }
-actions generate-a-cpp-file { echo "void g() {}" > "$(<)" }
+if [ os.name ] = NT
+{
+ actions generate-a-cpp-file { echo void g() {} > "$(<)" }
+}
+else
+{
+ actions generate-a-cpp-file { echo "void g() {}" > "$(<)" }
+}
 """)
 
     t.write("Other/jamfile.jam", """


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk