mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-19 06:06:54 -06:00
.ide: Support multiple preconfigured *.bm on first run
git-svn-id: svn://ultimatepp.org/upp/trunk@4470 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6be7ef242d
commit
d6c8aef327
1 changed files with 8 additions and 3 deletions
|
|
@ -335,9 +335,14 @@ bool Install()
|
|||
if(!(InstallWizard().Run()&(IDOK|IDCANCEL))) return false;
|
||||
|
||||
String supp=UpdaterCfg().globalsrc;
|
||||
String bm = ConfigFile("GCC.bm");
|
||||
if(IsNull(LoadFile(bm)))
|
||||
SaveFile(bm, LoadFile(AppendFileName(supp, "GCC.bm")));
|
||||
FindFile ff(ConfigFile("*.bm"));
|
||||
if(!ff) {
|
||||
ff.Search(AppendFileName(supp, "*.bm"));
|
||||
while(ff) {
|
||||
FileCopy(ff.GetPath(), ConfigFile(ff.GetName()));
|
||||
ff.Next();
|
||||
}
|
||||
}
|
||||
// 2008/06/01 -- add valgrind suppression file
|
||||
String ValgSupp = ConfigFile("valgrind.supp");
|
||||
if(IsNull(LoadFile(ValgSupp)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue