Changeset 562 for CMT/HEAD/source/cmt_parser.cxx
- Timestamp:
- Mar 8, 2011, 5:02:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_parser.cxx
r561 r562 2876 2876 2877 2877 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)?$"); 2879 2880 2880 2881 CmtSystem::scan_dir (".", expression, makes); … … 2891 2892 CmtSystem::split (s, '.', words); 2892 2893 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")) 2894 2896 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")) 2896 2899 CmtSystem::remove_file (s); 2897 2900 } 2898 2901 } 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); 2904 2910 2905 2911 if (makes.size () > 0) … … 2917 2923 CmtSystem::split (s, '.', words); 2918 2924 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")) 2920 2927 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")) 2922 2930 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 /* 2928 2939 Use& use = Use::current (); 2929 2940 … … 2946 2957 return; 2947 2958 } 2948 2959 */ 2960 Me.m_quiet = true; 2949 2961 install_setup_scripts (); 2950 2962 install_cleanup_scripts (); … … 6356 6368 6357 6369 // 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); 6359 6371 6360 6372 // … … 6707 6719 use_extra_file (ap.extra_file); 6708 6720 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); 6709 6723 Me.m_warnings = w; 6724 //if (strlen (ap.extra_line.c_str ()) > 0) SyntaxParser::parse_requirements_line (ap.extra_line, &(Use::current ())); 6710 6725 } 6711 6726 break;
Note: See TracChangeset
for help on using the changeset viewer.