Changeset 10325 for trunk


Ignore:
Timestamp:
04/07/11 22:02:44 (14 years ago)
Author:
tbretz
Message:
Remove lt- prefix from libtool from program name.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ReadlineColor.cc

    r10321 r10325  
    2323bool ReadlineColor::PrintBootMsg(ostream &out, const string &name)
    2424{
     25    string n = boost::filesystem::basename(name);
     26    if (n.substr(0, 3)=="lt-")
     27        n = n.substr(3);
     28
    2529    out << endl;
    2630    out << kBlue << kBold << kUnderline << " Master Control Program " << endl;
     
    2832    out << kBlue << " ENCOM MX 16-923 USER # 0" << int(Time().Mjd()) << Time::fmt(" %H:%M:%S") << Time() << Time::reset << " INFORMATION" << endl;
    2933    out << endl;
    30     out << kBlue << " TELESCOPE CONTROL PROGRAM: " << boost::filesystem::basename(name) << endl;
     34    out << kBlue << " TELESCOPE CONTROL PROGRAM: " << n << endl;
    3135    out << kBlue << " ANNEXED BY FACT COLLABORATION" << endl;
    3236    out << kBlue << " ORIGINAL PROGRAM WRITTEN BY T.BRETZ" << endl;
  • trunk/FACT++/src/test3.cc

    r10316 r10325  
    11#include <boost/regex.hpp>
     2#include <boost/filesystem.hpp>
    23#include <readline/readline.h>
    34
     
    119120void PrintVersion(const char *name)
    120121{
     122    string n = boost::filesystem::basename(name);
     123    if (n.substr(0, 3)=="lt-")
     124        n = n.substr(3);
     125
    121126    cout <<
    122         name << " - FACT++ 1.0\n"
     127        n << " - FACT++ 1.0\n"
    123128        "\n"
    124129        "Written by Thomas Bretz <thomas.bretz@epfl.ch> et al.\n"
Note: See TracChangeset for help on using the changeset viewer.