1 | # add hint path for DataVisualization assembly |
---|
2 | ORIG="<Reference Include=\"System.Windows.Forms.DataVisualization\" \/>" |
---|
3 | REP="<Reference Include=\"System.Windows.Forms.DataVisualization\" > \n <HintPath>..\/..\/bin\/System.Windows.Forms.DataVisualization.dll<\/HintPath> \n <\/Reference>" |
---|
4 | |
---|
5 | for filename in $(find . -name '*.csproj') |
---|
6 | do |
---|
7 | sed "s/$ORIG/$REP/g" $filename > tmp |
---|
8 | mv tmp $filename |
---|
9 | done; |
---|
10 | |
---|
11 | |
---|
12 | # remove projects that do not build |
---|
13 | unamestr=`uname` |
---|
14 | if [[ "$unamestr" == 'Darwin' ]]; then |
---|
15 | awk '/ICSharpCode.AvalonEdit-5.0.1|HeuristicLab.AvalonEdit-5.0.1/ {while (/ICSharpCode.AvalonEdit-5.0.1|HeuristicLab.AvalonEdit-5.0.1/ && getline>0) ; next} 1' HeuristicLab.ExtLibs.sln > tmp |
---|
16 | mv tmp HeuristicLab.ExtLibs.sln |
---|
17 | awk '/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.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 |
---|
18 | mv tmp "HeuristicLab 3.3.sln" |
---|
19 | elif [[ "$unamestr" == 'Linux' ]]; then |
---|
20 | sed -e '/ICSharpCode.AvalonEdit-5.0.1/,+1d' -e '/HeuristicLab.AvalonEdit-5.0.1/,+1d' HeuristicLab.ExtLibs.sln > tmp |
---|
21 | mv tmp HeuristicLab.ExtLibs.sln |
---|
22 | sed -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 |
---|
23 | mv tmp "HeuristicLab 3.3.sln" |
---|
24 | else |
---|
25 | echo "Unsupported operating system, compiling HeuristicLab may not work!" |
---|
26 | fi |
---|
27 | |
---|
28 | |
---|
29 | # switch to MultiDocument MainForm type as Docking doesn't properly work on Linux |
---|
30 | sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.settings > tmp |
---|
31 | mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.settings |
---|
32 | |
---|
33 | sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs > tmp |
---|
34 | mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs |
---|