Changeset 11423


Ignore:
Timestamp:
07/15/11 15:26:34 (13 years ago)
Author:
tbretz
Message:
To be able to properly remobe the .libs also check the current path if filename is without path.
File:
1 edited

Legend:

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

    r11404 r11423  
    12361236    string fname = path.filename();
    12371237
     1238    // If the filename starts with "lt-" remove it from the name
    12381239    if (fname.substr(0, 3)=="lt-")
    12391240        fname = fname.substr(3);
    12401241
    1241     if (pname.empty() || pname==".libs")
     1242    // If no directory is contained determine the current directory
     1243    if (pname.empty())
     1244        pname = boost::filesystem::current_path().string();
     1245
     1246    // If the directory is relative and just ".libs" forget about it
     1247    if (pname==".libs")
    12421248        return fname;
    12431249
     1250    // Check if the directory is long enough to contain "/.libs"
    12441251    if (pname.length()>=6)
    12451252    {
     1253        // If the directory ends with "/.libs", remove it
    12461254        const size_t pos = pname.length()-6;
    12471255        if (pname.substr(pos)=="/.libs")
Note: See TracChangeset for help on using the changeset viewer.