Ignore:
Timestamp:
Mar 8, 2011, 1:56:48 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_generators.cxx

    r547 r561  
    230230  CmtSystem::basename (m_FULLNAME, m_FILENAME.value);
    231231 
    232   if (CmtSystem::test_file (m_FULLNAME))
    233     {
     232  //  if (CmtSystem::test_file (m_FULLNAME))
     233  //    {
    234234      java_fragment.copy (m_output_file, constituent.variables, 5,
    235235                          &m_NAME,
     
    238238                          &m_CONSTITUENT,
    239239                          &m_CONSTITUENTSUFFIX);
     240      /*
    240241    }
    241242  else
     
    244245      //      cerr << "#CMT> Warning: file " << m_FULLNAME << " not found" << endl;
    245246    }
     247      */
    246248}
    247249
     
    514516  //fill_outputs ();
    515517
    516   prepare_use_context ();
     518  //prepare_use_context ();
    517519
    518520  m_DATE = CmtSystem::now ();
     
    986988      int count = get_all_files (full_name, excludes, selects, files);
    987989
    988       filter_path (full_name);
     990      //      filter_path (full_name);
    989991
    990992      /*
     
    10101012  //  fill_outputs ();
    10111013
    1012   prepare_use_context ();
     1014  //  prepare_use_context ();
    10131015
    10141016  m_DATE = CmtSystem::now ();
     
    10691071  else
    10701072    {
     1073      /*
    10711074      for (i = 0; i < sources.size (); i++)
    10721075        {
     
    10861089            {
    10871090              const cmt_string& name = files[j];
    1088              
     1091      */             
     1092      for (i = 0; i < m_source_files.size (); i++)
     1093        {
     1094          SourceFile& file = m_source_files[i];
     1095          const cmt_string& name = file.name ();
    10891096              if (name != "")
    10901097                {
     
    11011108                           name.c_str ());
    11021109                }
    1103             }
     1110              //            }
    11041111        }
    11051112    }
     
    11181125      CmtSystem::basename (file_name, m_FILENAME.value);
    11191126      CmtSystem::get_dot_suffix (m_FILENAME.value, m_FILESUFFIX.value);
    1120 
     1127      /*
    11211128      if (!CmtSystem::test_file (file_name) && !CmtSystem::test_directory (file_name))
    11221129        {
    11231130          CmtMessage::warning ("Source file " + file_name + " not found");
    1124           //          cerr << "#CMT> Warning: Source file " << file_name << " not found" << endl;
    1125         }
    1126 
     1131        }
     1132      */
    11271133      filter_path (m_FULLNAME.value);
    11281134
     
    11641170                                      const cmt_string& output_suffix)
    11651171{
    1166   static cmt_string output_dir;
     1172  //static cmt_string output_dir;
    11671173  static cmt_string suffix;
    11681174  static cmt_string name;
     
    11721178    {
    11731179      CmtMessage::warning ("Source file " + file + " not found");
    1174       //      cerr << "#CMT> Warning: Source file " << file << " not found" << endl;
    1175     }
    1176 
    1177   CmtSystem::dirname (file, output_dir);
    1178   output_dir += CmtSystem::file_separator ();
    1179 
    1180   filter_path (output_dir);
     1180    }
     1181
     1182  //CmtSystem::dirname (file, output_dir);
     1183  //output_dir += CmtSystem::file_separator ();
     1184
     1185  //filter_path (output_dir);
    11811186
    11821187  CmtSystem::get_suffix (file, suffix);
     
    25202525//--------------------------------------------------
    25212526void ConstituentsMakefileGenerator::build (const cmt_string& package,
    2522                                            const CmtSystem::cmt_string_vector& arguments)
     2527                                           const cmt_string& file)
     2528//                                         const CmtSystem::cmt_string_vector& arguments)
    25232529{
    25242530  reset ();
    25252531
    2526   cmt_string file_name, dir_name;
    2527 
    2528   if (arguments.size () > 0)
    2529     {
    2530       cmt_string arg = arguments[0];
    2531       if (arg.substr (0, 5) == "-out=")
    2532         {
    2533           arg.erase (0, 5);
    2534           file_name = arg;
    2535         }
    2536       else if (arg.substr (0, 8) == "-outdir=")
    2537         {
    2538           arg.erase (0, 8);
    2539           dir_name = arg;
    2540         }
    2541     }
     2532  cmt_string file_name (file);
     2533    //, dir_name;
     2534
     2535//   if (arguments.size () > 0)
     2536//     {
     2537//       cmt_string arg = arguments[0];
     2538//       if (arg.substr (0, 5) == "-out=")
     2539//      {
     2540//        arg.erase (0, 5);
     2541//        file_name = arg;
     2542//      }
     2543//       else if (arg.substr (0, 8) == "-outdir=")
     2544//      {
     2545//        arg.erase (0, 8);
     2546//        dir_name = arg;
     2547//      }
     2548//     }
    25422549
    25432550  if (file_name == "")
     
    25572564    }
    25582565
    2559   if (dir_name != "")
    2560     {
    2561       if (dir_name [dir_name.size () - 1] != CmtSystem::file_separator ())
    2562         dir_name += CmtSystem::file_separator ();
    2563       file_name = dir_name + file_name;
    2564     }
     2566//   if (dir_name != "")
     2567//     {
     2568//       if (dir_name [dir_name.size () - 1] != CmtSystem::file_separator ())
     2569//      dir_name += CmtSystem::file_separator ();
     2570//       file_name = dir_name + file_name;
     2571//     }
    25652572
    25662573  cmt_string save_file_name = file_name;
Note: See TracChangeset for help on using the changeset viewer.