Ignore:
Timestamp:
Mar 8, 2011, 5:02:59 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 445

File:
1 edited

Legend:

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

    r561 r562  
    28762876
    28772877  CmtSystem::cmt_string_vector makes;
    2878   cmt_regexp expression ("[.]n?make(sav)?$");
     2878  cmt_regexp expression ("[.](n?make(sav|cmtsave)?|in)$");
     2879  //  cmt_regexp expression ("[.]n?make(sav)?$");
    28792880
    28802881  CmtSystem::scan_dir (".", expression, makes);
     
    28912892          CmtSystem::split (s, '.', words);
    28922893          if (words.size()>=2)
    2893             if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake")
     2894            if (CmtSystem::get_makefile_suffix () == "nmake" &&
     2895                (words[1] == "nmake"|| words[1] == "nmakesav" || words[1] == "nmakecmtsave"))
    28942896              CmtSystem::remove_file (s);
    2895             else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make")
     2897            else if (CmtSystem::get_makefile_suffix () == "make" &&
     2898                     (words[1] == "make" || words[1] == "makesav" || words[1] == "makecmtsave"))
    28962899              CmtSystem::remove_file (s);
    28972900        }
    28982901    }
    2899  
    2900 
    2901   CmtSystem::cd ("..");
    2902 
    2903   CmtSystem::scan_dir (Me.m_cmt_config, expression, makes);
     2902
     2903  cmt_string bin ("..");
     2904  bin += CmtSystem::file_separator ();
     2905  bin += Me.m_cmt_config;
     2906  //  CmtSystem::cd ("..");
     2907
     2908  CmtSystem::scan_dir (bin, expression, makes);
     2909  //  CmtSystem::scan_dir (Me.m_cmt_config, expression, makes);
    29042910   
    29052911  if (makes.size () > 0)
     
    29172923          CmtSystem::split (s, '.', words);
    29182924          if (words.size()>=2)
    2919             if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake")
     2925            if (CmtSystem::get_makefile_suffix () == "nmake" &&
     2926                (words[1] == "nmake"|| words[1] == "nmakesav" || words[1] == "nmakecmtsave"))
    29202927              CmtSystem::remove_file (s);
    2921             else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make")
     2928            else if (CmtSystem::get_makefile_suffix () == "make" &&
     2929                     (words[1] == "make" || words[1] == "makesav" || words[1] == "makecmtsave"))
    29222930              CmtSystem::remove_file (s);
    2923         }   
    2924     }
    2925 
    2926   CmtSystem::cd (branch);
    2927 
     2931            else if (words.size() == 2 && words[1] == "in")
     2932              CmtSystem::remove_file (s);
     2933        }
     2934    }
     2935
     2936  //  CmtSystem::cd (branch);
     2937
     2938  /*
    29282939  Use& use = Use::current ();
    29292940
     
    29462957      return;
    29472958    }
    2948 
     2959  */
     2960  Me.m_quiet = true;
    29492961  install_setup_scripts ();
    29502962  install_cleanup_scripts ();
     
    63566368
    63576369  //  if (strlen (ap.extra_file.c_str ()) > 0) SyntaxParser::parse_requirements (ap.extra_file, (Use*) 0);
    6358   if (strlen (ap.extra_line.c_str ()) > 0) SyntaxParser::parse_requirements_line (ap.extra_line, (Use*) 0);
     6370  //  if (strlen (ap.extra_line.c_str ()) > 0) SyntaxParser::parse_requirements_line (ap.extra_line, (Use*) 0);
    63596371
    63606372  //
     
    67076719          use_extra_file (ap.extra_file);
    67086720        use_user_context_requirements ();
     6721        if (strlen (ap.extra_line.c_str ()) > 0)
     6722          SyntaxParser::parse_requirements_text (ap.extra_line, "extra statement(s)", (Use*) 0);
    67096723        Me.m_warnings = w;
     6724        //if (strlen (ap.extra_line.c_str ()) > 0) SyntaxParser::parse_requirements_line (ap.extra_line, &(Use::current ()));
    67106725      }
    67116726      break;
Note: See TracChangeset for help on using the changeset viewer.