Ignore:
Timestamp:
Apr 7, 2011, 10:02:44 PM (10 years ago)
Author:
tbretz
Message:
Remove lt- prefix from libtool from program name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.