Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2916_IndexedDataTableSerialization/prepareProjectsForMono.sh @ 16176

Last change on this file since 16176 was 15682, checked in by swagner, 7 years ago

#2887: moved content of trunk/sources to trunk

  • Property svn:mergeinfo set to (toggle deleted branches)
    /stable/prepareProjectsForMono.shmergedeligible
    /branches/1721-RandomForestPersistence/prepareProjectsForMono.sh10321-10322
    /branches/Algorithms.GradientDescent/prepareProjectsForMono.sh5516-5520
    /branches/Async/prepareProjectsForMono.sh13329-15286
    /branches/Benchmarking/sources/prepareProjectsForMono.sh6917-7005
    /branches/CloningRefactoring/prepareProjectsForMono.sh4656-4721
    /branches/CodeEditor/prepareProjectsForMono.sh11700-11806
    /branches/DataAnalysis Refactoring/prepareProjectsForMono.sh5471-5808
    /branches/DataAnalysis SolutionEnsembles/prepareProjectsForMono.sh5815-6180
    /branches/DataAnalysis/prepareProjectsForMono.sh4458-4459,​4462,​4464
    /branches/DataPreprocessing/prepareProjectsForMono.sh10085-11101
    /branches/GP.Grammar.Editor/prepareProjectsForMono.sh6284-6795
    /branches/GP.Symbols (TimeLag, Diff, Integral)/prepareProjectsForMono.sh5060
    /branches/HLScript/prepareProjectsForMono.sh10331-10358
    /branches/HeuristicLab.DatasetRefactor/sources/prepareProjectsForMono.sh11570-12508
    /branches/HeuristicLab.Problems.DataAnalysis.Trading/prepareProjectsForMono.sh6123-9799
    /branches/HeuristicLab.Problems.Orienteering/prepareProjectsForMono.sh11130-12721
    /branches/HiveStatistics/sources/prepareProjectsForMono.sh12440-12877
    /branches/LogResidualEvaluator/prepareProjectsForMono.sh10202-10483
    /branches/NET40/sources/prepareProjectsForMono.sh5138-5162
    /branches/NSGA-II Changes/prepareProjectsForMono.sh12033-12122
    /branches/ParallelEngine/prepareProjectsForMono.sh5175-5192
    /branches/ProblemInstancesRegressionAndClassification/prepareProjectsForMono.sh7568-7810
    /branches/QAPAlgorithms/prepareProjectsForMono.sh6350-6627
    /branches/Restructure trunk solution/prepareProjectsForMono.sh6828
    /branches/RuntimeOptimizer/prepareProjectsForMono.sh8943-9078
    /branches/ScatterSearch (trunk integration)/prepareProjectsForMono.sh7787-8333
    /branches/SlaveShutdown/prepareProjectsForMono.sh8944-8956
    /branches/SpectralKernelForGaussianProcesses/prepareProjectsForMono.sh10204-10479
    /branches/SuccessProgressAnalysis/prepareProjectsForMono.sh5370-5682
    /branches/Trunk/prepareProjectsForMono.sh6829-6865
    /branches/UnloadJobs/prepareProjectsForMono.sh9168-9215
    /branches/VNS/prepareProjectsForMono.sh5594-5752
    /branches/crossvalidation-2434/prepareProjectsForMono.sh12948-12950
    /branches/histogram/prepareProjectsForMono.sh5959-6341
    /branches/symbreg-factors-2650/prepareProjectsForMono.sh14232-14825
File size: 3.3 KB
Line 
1# add hint path for DataVisualization assembly
2# define __MonoCS__
3# --------------------------------------------
4orig="<Reference Include=\"System.Windows.Forms.DataVisualization\" \/>"
5repl="<Reference Include=\"System.Windows.Forms.DataVisualization\"><HintPath>..\/..\/bin\/System.Windows.Forms.DataVisualization.dll<\/HintPath><\/Reference>"
6
7for csprojfile in $(find . -name '*.csproj')
8do   
9  sed -e "s/$orig/$repl/g" \
10      -e "s@<DefineConstants>\(.*\)</DefineConstants>@<DefineConstants>\1;__MonoCS__</DefineConstants>@g" \
11      $csprojfile > tmp
12  mv tmp $csprojfile
13done;
14
15# remove projects that do not build
16# ---------------------------------
17UNAMESTR=`uname`
18
19if [[ "$UNAMESTR" == 'Linux' || "$UNAMESTR" == 'Darwin' ]]; then
20  sed `# projects` \
21      -e '/HeuristicLab.AvalonEdit-5.0.1/{N;d;}' \
22      -e '/ICSharpCode.AvalonEdit-5.0.1/{N;d;}' \
23      `# project configurations` \
24      -e '/644B1CCE-1B2A-4C61-B0E3-A2EDB89DF872/d' `# HeuristicLab.AvalonEdit-5.0.1` \
25      -e '/255C7DEB-3C98-4BC2-92D4-B683F82A7E52/d' `# ICSharpCode.AvalonEdit-5.0.1` \
26      "HeuristicLab.ExtLibs.sln" > tmp
27  mv tmp "HeuristicLab.ExtLibs.sln"
28
29  sed `# projects` \
30      -e '/HeuristicLab.Problems.BinPacking.Views-3.3/{N;d;}' \
31      -e '/HeuristicLab.Problems.ExternalEvaluation-3.4/{N;d;}' \
32      -e '/HeuristicLab.Problems.ExternalEvaluation.GP-3.5/{N;d;}' \
33      -e '/HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3/{N;d;}' \
34      -e '/HeuristicLab.Problems.ExternalEvaluation.Views-3.4/{N;d;}' \
35      `# project configurations` \
36      -e '/8CFC7A61-E214-44DC-96B3-4CEA9B8E958E/d' `# HeuristicLab.Problems.BinPacking.Views-3.3` \
37      -e '/8A0B2A2B-47A7-410D-97A0-4296293BB00D/d' `# HeuristicLab.Problems.ExternalEvaluation-3.4` \
38      -e '/64CC53AC-156B-4D8A-8DB0-B68990BEA4D3/d' `# HeuristicLab.Problems.ExternalEvaluation.GP-3.5` \
39      -e '/362A5DC3-969D-43FB-A552-D2F52B780188/d' `# HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3` \
40      -e '/F7E5B975-FDF2-45A4-91CB-FF6D3C33D65E/d' `# HeuristicLab.Problems.ExternalEvaluation.Views-3.4` \
41      "HeuristicLab 3.3.sln" > tmp
42  mv tmp "HeuristicLab 3.3.sln"
43
44  # remove code from HeuristicLab.CodeEditor that depends on WPF and therefore does not work with Mono
45  sed -e '/ITextMarker.cs/d' \
46      -e '/MethodDefinitionReadOnlySectionProvider.cs/d' \
47      -e '/GoToLineDialog/{N;N;d;}' \
48      -e '/TextMarkerService.cs/d' \
49      -e '/Compile Include\=\"LanguageFeatures/d' \
50      -e '/AvalonEditWrapper.xaml.cs/{N;N;d;}' \
51      -e '/AvalonEditWrapper.xaml/{N;N;N;d;}' \
52      -e '/CodeViewer/{N;N;d;}' \
53      -e '/\"CodeEditor.cs/{N;N;d;}' \
54      -e '/\"CodeEditor.Designer.cs/{N;N;d;}' \
55      "HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj" > tmp
56  mv tmp "HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj"
57else
58  echo "Unsupported operating system, compiling HeuristicLab may not work!"
59fi
60
61# switch to MultipleDocumentMainForm type as DockingMainForm does not properly work with Mono
62sed "s/DockingMainForm/MultipleDocumentMainForm/g" "HeuristicLab.Optimizer/3.3/Properties/Settings.settings" > tmp
63mv tmp "HeuristicLab.Optimizer/3.3/Properties/Settings.settings"
64
65sed "s/DockingMainForm/MultipleDocumentMainForm/g" "HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs" > tmp
66mv tmp "HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs"
Note: See TracBrowser for help on using the repository browser.