Changeset 523 for CMT/HEAD/source
- Timestamp:
- Oct 15, 2009, 12:46:33 PM (15 years ago)
- Location:
- CMT/HEAD/source
- Files:
-
- 3 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; -
CMT/HEAD/source/cmt_project.cxx
r519 r523 1945 1945 set_default_strategy ("SetupRoot"); 1946 1946 set_default_strategy ("SetupCleanup"); 1947 set_default_strategy ("SetupScripts"); 1947 1948 set_default_strategy ("BuildPrototypes"); 1948 1949 set_default_strategy ("InstallArea"); … … 2723 2724 2724 2725 s = new StrategyDef; 2726 s->m_keyword = "setup"; 2727 s->m_name = "SetupScripts"; 2728 s->m_on_value = "scripts"; 2729 s->m_off_value = "no_scripts"; 2730 s->m_default_value = true; 2731 s->m_priority_value = false; 2732 2733 m_defs.push_back (s); 2734 2735 s = new StrategyDef; 2725 2736 s->m_keyword = "structure"; 2726 2737 s->m_name = "VersionDirectory"; … … 2857 2868 m_off_tag = Tag::find (to_untag_name); 2858 2869 2859 if (m_on_tag == 0 )2870 if (m_on_tag == 0 || m_off_tag == 0) 2860 2871 { 2861 2872 m_on_tag = Tag::add (to_tag_name, PriorityConfig, "PROJECT", 0); -
CMT/HEAD/source/cmt_syntax.cxx
r459 r523 1037 1037 { 1038 1038 strategy = "SetupCleanup"; 1039 } 1040 else if (value == "scripts") 1041 { 1042 strategy = "SetupScripts"; 1043 } 1044 else if (value == "no_scripts") 1045 { 1046 strategy = "SetupScripts"; 1039 1047 } 1040 1048 else
Note: See TracChangeset
for help on using the changeset viewer.