[8633] | 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 | |
---|
[9702] | 5 | for filename in $(find . -name '*.csproj') |
---|
[8633] | 6 | do |
---|
| 7 | sed "s/$ORIG/$REP/g" $filename > tmp |
---|
| 8 | mv tmp $filename |
---|
| 9 | done; |
---|
| 10 | |
---|
[8654] | 11 | |
---|
[8633] | 12 | # remove projects that do not build |
---|
[9702] | 13 | unamestr=`uname` |
---|
| 14 | if [[ "$unamestr" == 'Darwin' ]]; then |
---|
| 15 | |
---|
| 16 | awk '/ProtocolBuffers-2.4.1.473|ProtoGen-2.4.1.473|HeuristicLab.ProtobufCS-2.4.1.473/ {while (/ProtocolBuffers-2.4.1.473|ProtoGen-2.4.1.473|HeuristicLab.ProtobufCS-2.4.1.473/ && getline>0) ; next} 1' HeuristicLab.ExtLibs.sln > tmp |
---|
| 17 | mv tmp HeuristicLab.ExtLibs.sln |
---|
[8633] | 18 | |
---|
[9702] | 19 | awk '/HeuristicLab.Problems.ExternalEvaluation-3.3|HeuristicLab.Problems.ExternalEvaluation.GP-3.4|HeuristicLab.Problems.ExternalEvaluation.Views-3.3/ {while (/HeuristicLab.Problems.ExternalEvaluation-3.3|HeuristicLab.Problems.ExternalEvaluation.GP-3.4|HeuristicLab.Problems.ExternalEvaluation.Views-3.3/ && getline>0) ; next} 1' "HeuristicLab 3.3.sln" > tmp |
---|
| 20 | mv tmp "HeuristicLab 3.3.sln" |
---|
[8654] | 21 | |
---|
[9702] | 22 | elif [[ "$unamestr" == 'Linux' ]]; then |
---|
| 23 | sed -e '/ProtocolBuffers-2.4.1.473/,+1d' -e '/ProtoGen-2.4.1.473/,+1d' -e '/HeuristicLab.ProtobufCS-2.4.1.473/,+1d' HeuristicLab.ExtLibs.sln > tmp |
---|
| 24 | mv tmp HeuristicLab.ExtLibs.sln |
---|
[8654] | 25 | |
---|
[9702] | 26 | sed -e '/HeuristicLab.Problems.ExternalEvaluation-3.3/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation.GP-3.4/,+1d' -e '/HeuristicLab.Problems.ExternalEvaluation.Views-3.3/,+1d' "HeuristicLab 3.3.sln" > tmp |
---|
| 27 | mv tmp "HeuristicLab 3.3.sln" |
---|
| 28 | else |
---|
| 29 | echo "Unsupported operating system, compiling HeuristicLab may not work!" |
---|
| 30 | fi |
---|
| 31 | |
---|
| 32 | |
---|
[8654] | 33 | # switch to MultiDocument MainForm type as Docking doesn't properly work on Linux |
---|
| 34 | sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.settings > tmp |
---|
| 35 | mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.settings |
---|
| 36 | |
---|
| 37 | sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs > tmp |
---|
| 38 | mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs |
---|