Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70352 - in trunk/libs/geometry/doc/src/docutils/tools/implementation_status: . tmp
From: bruno.lalande_at_[hidden]
Date: 2011-03-21 16:43:26


Author: bruno.lalande
Date: 2011-03-21 16:43:25 EDT (Mon, 21 Mar 2011)
New Revision: 70352
URL: http://svn.boost.org/trac/boost/changeset/70352

Log:
Bjam'ified the implementation_status tool.
Added:
   trunk/libs/geometry/doc/src/docutils/tools/implementation_status/Jamfile.v2 (contents, props changed)
   trunk/libs/geometry/doc/src/docutils/tools/implementation_status/tmp/Jamfile.v2 (contents, props changed)
Text files modified:
   trunk/libs/geometry/doc/src/docutils/tools/implementation_status/implementation_status.cpp | 38 ++++++--------------------------------
   1 files changed, 6 insertions(+), 32 deletions(-)

Added: trunk/libs/geometry/doc/src/docutils/tools/implementation_status/Jamfile.v2
==============================================================================
--- (empty file)
+++ trunk/libs/geometry/doc/src/docutils/tools/implementation_status/Jamfile.v2 2011-03-21 16:43:25 EDT (Mon, 21 Mar 2011)
@@ -0,0 +1,15 @@
+# example/Jamfile.v2 controls building of Generic Geometry Library examples
+#
+# Copyright Barend Gehrels, Geodan Holding B.V. Amsterdam, the Netherlands.
+# Copyright (c) 2009 Mateusz Loskot <mateusz_at_[hidden]>
+# Use, modification and distribution is subject to the Boost Software License,
+# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+project boost-implementation-status
+ :
+ ;
+
+exe status : implementation_status.cpp
+ ;

Modified: trunk/libs/geometry/doc/src/docutils/tools/implementation_status/implementation_status.cpp
==============================================================================
--- trunk/libs/geometry/doc/src/docutils/tools/implementation_status/implementation_status.cpp (original)
+++ trunk/libs/geometry/doc/src/docutils/tools/implementation_status/implementation_status.cpp 2011-03-21 16:43:25 EDT (Mon, 21 Mar 2011)
@@ -12,7 +12,6 @@
 
 #include <vector>
 
-#include <direct.h>
 #include <stdlib.h>
 
 #include <boost/algorithm/string/predicate.hpp>
@@ -142,7 +141,6 @@
         lit = out.str();
     }
 
- //report << lit << std::endl;
     std::cout << lit;
 
     {
@@ -191,40 +189,16 @@
             ;
     }
 
- std::string command = "cl /nologo -I. -I/_svn/boost/trunk /EHsc /Y";
- static bool first = true;
- if (first)
+ if (system("bjam tmp > tmp/t.out"))
     {
- std::cout << " (creating PCH)";
- command += "c";
- first = false;
+ report << " [$img/nyi.png] ";
+ std::cout << " ERROR" << std::endl;
     }
     else
     {
- command += "u";
+ report << " [$img/ok.png ] ";
+ std::cout << std::endl;
     }
-
- system((command + "implementation_status.hpp tmp/t.cpp > tmp/t.out").c_str());
-
- {
- std::ifstream result("tmp/t.out");
- while (! result.eof() )
- {
- std::string line;
- std::getline(result, line);
- boost::trim(line);
- if (boost::contains(line, "error"))
- {
- //report << algo.name << std::endl;
- report << " [$img/nyi.png] ";// << line << std::endl;
- std::cout << " ERROR" << std::endl;
- return;
- }
- }
- }
- report << " [$img/ok.png ] ";
- std::cout << std::endl;
-
 }
 
 void report(std::ostream& out, int type, algorithm const& algo,
@@ -333,4 +307,4 @@
    }
 
     return 0;
-}
\ No newline at end of file
+}

Added: trunk/libs/geometry/doc/src/docutils/tools/implementation_status/tmp/Jamfile.v2
==============================================================================
--- (empty file)
+++ trunk/libs/geometry/doc/src/docutils/tools/implementation_status/tmp/Jamfile.v2 2011-03-21 16:43:25 EDT (Mon, 21 Mar 2011)
@@ -0,0 +1,17 @@
+# example/Jamfile.v2 controls building of Generic Geometry Library examples
+#
+# Copyright Barend Gehrels, Geodan Holding B.V. Amsterdam, the Netherlands.
+# Copyright (c) 2009 Mateusz Loskot <mateusz_at_[hidden]>
+# Use, modification and distribution is subject to the Boost Software License,
+# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+project boost-implementation-status-test
+ :
+ ;
+
+exe status-test : t.cpp
+ : <include>../../../../../../../..
+ <include>..
+ ;


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