Changeset 523 for CMT/HEAD/source/cmt_parser.cxx
- Timestamp:
- Oct 15, 2009, 12:46:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_parser.cxx
r521 r523 4302 4302 } 4303 4303 4304 if (current_use.get_strategy ("SetupScripts")) 4305 { 4306 cout << " scripts"; 4307 } 4308 else 4309 { 4310 cout << " no_scripts"; 4311 } 4312 4304 4313 cout << endl; 4305 4314 … … 4748 4757 static const PrintMode mode[2] = {Csh, Sh}; 4749 4758 #endif 4759 4760 Use& current_use = Use::current (); 4761 4762 if (!current_use.get_strategy ("SetupScripts")) 4763 { 4764 for (int i = 0; i < modes; i++) 4765 { 4766 cmt_string old_file_name = "cleanup"; 4767 old_file_name += "."; 4768 old_file_name += suffix[i]; 4769 if (CmtSystem::test_file (old_file_name)) 4770 { 4771 if (CmtMessage::active (Error)) 4772 cerr << "Removing cleanup script " + old_file_name << endl; 4773 CmtSystem::remove_file (old_file_name); 4774 } 4775 } 4776 return; 4777 } 4750 4778 4751 4779 if (CmtMessage::active (Error)) … … 4836 4864 #endif 4837 4865 4866 Use& current_use = Use::current (); 4867 4868 if (!current_use.get_strategy ("SetupScripts")) 4869 { 4870 for (int i = 0; i < modes; i++) 4871 { 4872 cmt_string old_file_name = "setup"; 4873 old_file_name += "."; 4874 old_file_name += suffix[i]; 4875 if (CmtSystem::test_file (old_file_name)) 4876 { 4877 if (CmtMessage::active (Error)) 4878 cerr << "Removing setup script " + old_file_name << endl; 4879 CmtSystem::remove_file (old_file_name); 4880 } 4881 } 4882 return; 4883 } 4884 4838 4885 if (CmtMessage::active (Error)) 4839 4886 cerr << "Creating setup scripts." << endl; 4840 4841 Use& current_use = Use::current ();4842 4887 4843 4888 cmt_string no_cleanup_opt; … … 4950 4995 static const PrintMode mode[2] = {Csh, Sh}; 4951 4996 #endif 4997 4998 Use& current_use = Use::current (); 4999 5000 if (!current_use.get_strategy ("SetupScripts")) 5001 { 5002 for (int i = 0; i < modes; i++) 5003 { 5004 cmt_string old_file_name = "cleanup"; 5005 old_file_name += "."; 5006 old_file_name += suffix[i]; 5007 if (CmtSystem::test_file (old_file_name)) 5008 { 5009 if (CmtMessage::active (Error)) 5010 cerr << "Removing cleanup script " + old_file_name << endl; 5011 CmtSystem::remove_file (old_file_name); 5012 } 5013 } 5014 return; 5015 } 4952 5016 4953 5017 if (CmtMessage::active (Error)) … … 5060 5124 #endif 5061 5125 5126 Use& current_use = Use::current (); 5127 5128 if (!current_use.get_strategy ("SetupScripts")) 5129 { 5130 for (int i = 0; i < modes; i++) 5131 { 5132 cmt_string old_file_name = "setup"; 5133 old_file_name += "."; 5134 old_file_name += suffix[i]; 5135 if (CmtSystem::test_file (old_file_name)) 5136 { 5137 if (CmtMessage::active (Error)) 5138 cerr << "Removing setup script " + old_file_name << endl; 5139 CmtSystem::remove_file (old_file_name); 5140 } 5141 } 5142 return; 5143 } 5144 5062 5145 if (CmtMessage::active (Error)) 5063 5146 cerr << "Creating setup scripts." << endl; 5064 5065 Use& current_use = Use::current ();5066 5147 5067 5148 cmt_string no_cleanup_opt;
Note: See TracChangeset
for help on using the changeset viewer.