Changeset 11037 for trunk/FACT++
- Timestamp:
- 06/16/11 19:39:38 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/FACT.cc
r10712 r11037 11 11 12 12 #include <boost/filesystem.hpp> 13 14 #include "tools.h" 13 15 14 16 // -------------------------------------------------------------------------- … … 45 47 void FACT::PrintVersion(const char *name) 46 48 { 47 std::string n = boost::filesystem::basename(name); 48 if (n.substr(0, 3)=="lt-") 49 n = n.substr(3); 49 const std::string n = boost::filesystem::path(name).filename(); 50 50 51 51 std::cout << -
trunk/FACT++/src/ReadlineColor.cc
r10998 r11037 14 14 #include "WindowLog.h" 15 15 16 #include "tools.h" 17 16 18 using namespace std; 17 19 … … 23 25 bool ReadlineColor::PrintBootMsg(ostream &out, const string &name, bool interactive) 24 26 { 25 string n = boost::filesystem::basename(name); 26 if (n.substr(0, 3)=="lt-") 27 n = n.substr(3); 27 const string n = boost::filesystem::path(name).filename(); 28 28 29 29 out << kBlue << kBold << kUnderline << "\n Master Control Program (compiled "__DATE__" " __TIME__ << ") " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.