Changeset 333


Ignore:
Timestamp:
Nov 21, 2006, 11:15:02 AM (19 years ago)
Author:
garonne
Message:

do not create native_version if macro is empty

Location:
CMT/v1r20b1/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/v1r20b1/source/cmt_parser.cxx

    r332 r333  
    45314531  if (macro != 0)
    45324532  {
    4533       cout << "Creating native_version file." << endl;   
    45344533      cmt_string value = macro->resolve_macro_value ();
    4535       FILE* f          = fopen ("new.native_version.cmt", "wb");
    4536       if (f != NULL)
     4534      if (value != "")
    45374535      {
     4536        cout << "Creating native_version file." << endl;   
     4537        FILE* f          = fopen ("new.native_version.cmt", "wb");
     4538        if (f != NULL)
     4539        {
    45384540            fprintf (f, "%s\n", value.c_str ());
    4539       }     
    4540       //cout<<value <<endl;
    4541       fclose (f);
    4542 
    4543       CmtSystem::compare_and_update_files ("new.native_version.cmt", "native_version.cmt");
     4541        }     
     4542        //cout<<value <<endl;
     4543        fclose (f);
     4544
     4545        CmtSystem::compare_and_update_files ("new.native_version.cmt", "native_version.cmt");
     4546      }
    45444547  }   
    45454548}
  • CMT/v1r20b1/source/cmt_project.cxx

    r331 r333  
    579579          // cout << "About to add project policy package file [" <<  project->get_name()+"_project_policy" << "]" << endl;     
    580580      Use* project_use = Use::create (project->get_cmtpath(),
    581                                       project->get_name()+"_project_policy",
     581                                      "package_policy_for_project_"+project->get_name(),                                     
    582582                                      project->get_release (), "", "");                                                         
    583583      project_use->done      = true; //false;
  • CMT/v1r20b1/source/cmt_use.cxx

    r331 r333  
    493493
    494494          if (use->discarded) continue;
     495          if (use->m_hidden) continue;
    495496
    496497          if (!use->located ())
     
    37803781
    37813782  if (skip_discarded && discarded) return;
     3783  if (m_hidden) return;
    37823784
    37833785  if (level > 0)
Note: See TracChangeset for help on using the changeset viewer.