Changeset 3 for CMT/v1r19/source/cmt_parser.cxx
- Timestamp:
- Mar 2, 2005, 5:39:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r19/source/cmt_parser.cxx
r2 r3 1961 1961 void Cmt::do_check_configuration (const ArgParser& ap) 1962 1962 { 1963 cmt_string env; 1964 Tag* tag; 1965 1966 static CmtSystem::cmt_string_vector tags; 1967 1968 CmtSystem::split (Me.m_extra_tags, " \t,", tags); 1969 1970 for (int i = 0; i < tags.size (); i++) 1971 { 1972 const cmt_string& t = tags[i]; 1973 1974 tag = Tag::find (t); 1975 if (tag == 0) continue; 1976 1977 if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag)) 1978 { 1979 cerr << "#CMT> The tag " << t << " is not used in any tag expression. Please check spelling" << endl; 1980 } 1981 } 1982 1983 env = CmtSystem::getenv ("CMTSITE"); 1984 if (env == "") 1985 { 1986 return; 1987 } 1988 1989 tag = Tag::find (env); 1990 if (tag == 0) 1991 { 1992 return; 1993 } 1994 1995 if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag)) 1996 { 1997 cerr << "#CMT> The CMTSITE value " << env << " is not used in any tag expression. Please check spelling" << endl; 1998 } 1999 2000 env = CmtSystem::getenv ("CMTCONFIG"); 2001 if (env == "") 2002 { 2003 return; 2004 } 2005 2006 tag = Tag::find (env); 2007 if (tag == 0) 2008 { 2009 return; 2010 } 2011 2012 if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag)) 2013 { 2014 cerr << "#CMT> The CMTCONFIG value " << env << " is not used in any tag expression. Please check spelling" << endl; 2015 } 1963 2016 } 1964 2017 … … 2454 2507 { 2455 2508 Me.m_action = action_show_action_names; 2509 /* 2456 2510 if (!Me.m_quiet) 2457 2511 { … … 2459 2513 print_symbol_names (ap.mode); 2460 2514 } 2461 CmtError::set (CmtError::symbol_not_found, ap.arguments[0]); 2515 */ 2516 CmtError::set (CmtError::unknown_command, ap.arguments[0]); 2462 2517 return; 2463 2518 } … … 2986 3041 void Cmt::do_setup (const ArgParser& ap) 2987 3042 { 3043 3044 do_check_configuration (ap); 3045 2988 3046 print (ap.mode); 2989 3047 … … 3866 3924 { 3867 3925 //this directory should become the first entry of the CMTPATH 3926 3927 IProjectFactory& factory = ProjectFactory::instance (); 3928 factory.create_project (pwd, "CurrentProject"); 3929 3930 /* 3868 3931 cmt_string temp = "path_prepend CMTPATH \""; 3869 3932 temp += pwd; … … 3873 3936 3874 3937 SyntaxParser::parse_requirements_line (temp, &use); 3875 3938 */ 3939 3876 3940 break; 3877 3941 } … … 3890 3954 CmtSystem::cd (Me.m_current_dir); 3891 3955 } 3956 3957 cmt_string buffer = "path CMTPATH \n"; 3958 Project::set_cmtpaths (buffer); 3959 //cerr << "buffer = " << buffer << endl; 3960 Use& use = Use::current(); 3961 SyntaxParser::parse_requirements_text (buffer, "", &use); 3892 3962 } 3893 3963
Note: See TracChangeset
for help on using the changeset viewer.