Changeset 467 for CMT


Ignore:
Timestamp:
Sep 24, 2008, 11:30:23 AM (16 years ago)
Author:
rybkin
Message:

See C.L. 368

Location:
CMT/HEAD
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r466 r467  
     12008-09-24    <rybkin@lal.in2p3.fr> 368
     2       
     3        * source/cmt_log.h: Introduce the Verbose level of diagnostic messages that
     4        is higher than the Debug level and lower than the Info level.
     5        * source/cmt_parser.cxx: Set the Verbose level of diagnostic messages if
     6        the CMTVERBOSE environment variable is set to a non-empty string
     7        * source/cmt_symbol.cxx: Print the message about non-existent directories
     8        in path-like environment variables when the Verbose level is activated
     9        * source/cmt_generator.cxx: Optimise the build_windefs function
     10       
    1112008-09-22    <rybkin@lal.in2p3.fr> 367
    212       
  • CMT/HEAD/source/cmt_generator.cxx

    r466 r467  
    843843{
    844844  cmt_string name;
    845   CmtSystem::cmt_string_vector files;
     845  //  CmtSystem::cmt_string_vector files;
     846  cmt_string files;
    846847
    847848  for (int i = 0; i < arguments.size (); i++)
     
    868869          text.replace_all ("\r", " ");
    869870          text.replace_all ("\n", " ");
     871          files += " " + text;
     872          /*
    870873          CmtSystem::cmt_string_vector words;
    871874          CmtSystem::split (text, " \t", words);
     
    874877              files.push_back (words[i]);
    875878            }
     879          */
    876880        }
    877881      else
    878         files.push_back (w);
     882        files += " " + w;
     883      //        files.push_back (w);
    879884    }
    880885
     
    886891  if (name == "")
    887892    {
     893      CmtSystem::cmt_string_vector words;
     894      CmtSystem::split (files, " \t", words);
     895      if (words.size () == 0)
     896        {
     897          CmtMessage::error ("build_windefs: no files specified");
     898          return;
     899        }
    888900      cmt_string suffix;
    889       CmtSystem::get_dot_suffix (files[0], suffix);
    890       CmtSystem::basename (files[0], suffix, name);
     901      CmtSystem::get_dot_suffix (words[0], suffix);
     902      CmtSystem::basename (words[0], suffix, name);
    891903    }
    892904  if (name == "")
     
    908920  cmt_string command ("dumpbin /symbols");
    909921  //  command += library_name;
     922  /*
    910923  for (int i = 0; i < files.size (); i++)
    911924    {
    912925      command += " " + files[i];
    913926    }
     927  */
     928  command += " " + files;
    914929       
    915930  WinDefAwk filter (name);
  • CMT/HEAD/source/cmt_log.h

    r459 r467  
    4949    Nil = 0,
    5050    Debug,
     51    Verbose,
    5152    Info,
    5253    Warning,
  • CMT/HEAD/source/cmt_parser.cxx

    r466 r467  
    13791379    {
    13801380      CmtMessage::set_level (Info);
     1381    }
     1382
     1383  s = CmtSystem::getenv ("CMTVERBOSE");
     1384  if (s != "")
     1385    {
     1386      CmtMessage::set_level (Verbose);
    13811387    }
    13821388
  • CMT/HEAD/source/cmt_symbol.cxx

    r459 r467  
    886886      if (!CmtSystem::test_directory (t))
    887887          {
    888             CmtMessage::warning ("Wrong path item " + t + " in " + name);
     888            if (CmtMessage::active (Verbose))
     889              CmtMessage::warning ("Non-existent directory " + t + " in " + name);
    889890            /*
    890891              if (Cmt::get_warnings ())
Note: See TracChangeset for help on using the changeset viewer.