Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2845_EnhancedProgress/prepareProjectsForMono.sh @ 16310

Last change on this file since 16310 was 16308, checked in by pfleck, 6 years ago

#2845 reverted the last merge (r16307) because some revisions were missing

File size: 3.6 KB
RevLine 
[8633]1# add hint path for DataVisualization assembly
[16308]2ORIG="<Reference Include=\"System.Windows.Forms.DataVisualization\" \/>"
3REP="<Reference Include=\"System.Windows.Forms.DataVisualization\" > \n <HintPath>..\/..\/bin\/System.Windows.Forms.DataVisualization.dll<\/HintPath> \n <\/Reference>"
[8633]4
[16308]5for filename in $(find . -name '*.csproj')
[8633]6do   
[16308]7    sed "s/$ORIG/$REP/g" $filename > tmp
8    mv tmp $filename
[8633]9done;
10
[16308]11
[8633]12# remove projects that do not build
[16308]13unamestr=`uname`
14if [[ "$unamestr" == 'Darwin' ]]; then
15   awk '/ICSharpCode.AvalonEdit-5.0.1|HeuristicLab.AvalonEdit-5.0.1|HeuristicLab.SharpDX-2.6.3/ {while (/ICSharpCode.AvalonEdit-5.0.1|HeuristicLab.AvalonEdit-5.0.1|HeuristicLab.SharpDX-2.6.3/ && getline>0) ; next} 1' HeuristicLab.ExtLibs.sln > tmp
16   mv tmp HeuristicLab.ExtLibs.sln
[13016]17
[16308]18   awk '/HeuristicLab.Problems.BinPacking.Views-3.3|HeuristicLab.Problems.ExternalEvaluation-3.4|HeuristicLab.Problems.ExternalEvaluation.GP-3.5|HeuristicLab.Problems.ExternalEvaluation.Views-3.4|HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3/ {while (/HeuristicLab.Problems.BinPacking.Views-3.3|HeuristicLab.Problems.ExternalEvaluation-3.4|HeuristicLab.Problems.ExternalEvaluation.GP-3.5|HeuristicLab.Problems.ExternalEvaluation.Views-3.4|HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3/ && getline>0) ; next} 1' "HeuristicLab 3.3.sln" > tmp
19   mv tmp "HeuristicLab 3.3.sln"
[13016]20
[16308]21   #remove code from HeuristicLab.CodeEditor that depends on WPF and therefore does not work with Mono
22   sed -e '/ITextMarker.cs/d' -e '/MethodDefinitionReadOnlySectionProvider.cs/d' -e '/GoToLineDialog/{N;N;d;}' -e '/TextMarkerService.cs/d' -e '/Compile Include\=\"LanguageFeatures/d' -e '/AvalonEditWrapper.xaml.cs/{N;N;d;}' -e '/AvalonEditWrapper.xaml/{N;N;N;d;}' -e '/CodeViewer/{N;N;d;}' -e '/\"CodeEditor.cs\"/{N;N;d;}' -e '/\"CodeEditor.Designer.cs/{N;N;d;}' HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj > tmp
23   mv tmp HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj
[13016]24
[16308]25elif [[ "$unamestr" == 'Linux' ]]; then
26   sed -e '/ICSharpCode.AvalonEdit-5.0.1/,+1d' -e '/HeuristicLab.SharpDX-2.6.3/,+1d' HeuristicLab.ExtLibs.sln > tmp
27   mv tmp HeuristicLab.ExtLibs.sln
28   sed -e '/HeuristicLab.Problems.BinPacking.Views-3.3/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation-3.4/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation.GP-3.5/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation.Views-3.4/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3/,+1d' "HeuristicLab 3.3.sln" > tmp
29   mv tmp "HeuristicLab 3.3.sln"
30
31   #remove code from HeuristicLab.CodeEditor that depends on WPF and therefore does not work with Mono
32   sed -e '/ITextMarker.cs/d' -e '/MethodDefinitionReadOnlySectionProvider.cs/d' -e '/GoToLineDialog/,+2d' -e '/TextMarkerService.cs/d' -e '/Compile Include\=\"LanguageFeatures/d' -e '/AvalonEditWrapper.xaml.cs/,+2d' -e '/AvalonEditWrapper.xaml/,+3d' -e '/CodeViewer/,+2d' -e '/\"CodeEditor.cs/,+2d' -e '/\"CodeEditor.Designer.cs/,+2d' HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj > tmp
33   mv tmp HeuristicLab.CodeEditor/3.4/HeuristicLab.CodeEditor-3.4.csproj
34
[9702]35else
[16308]36   echo "Unsupported operating system, compiling HeuristicLab may not work!"
[9702]37fi
38
[16308]39# switch to MultiDocument MainForm type as Docking doesn't properly work on Linux
40sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.settings > tmp
41mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.settings
[8654]42
[16308]43sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs > tmp
44mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs
Note: See TracBrowser for help on using the repository browser.