Free cookie consent management tool by TermsFeed Policy Generator

source: stable/prepareProjectsForMono.sh @ 11249

Last change on this file since 11249 was 9960, checked in by ascheibe, 11 years ago

#2084 merged r9702 into stable branch

File size: 2.1 KB
Line 
1# add hint path for DataVisualization assembly
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>"
4
5for filename in $(find . -name '*.csproj')
6do   
7    sed "s/$ORIG/$REP/g" $filename > tmp
8    mv tmp $filename
9done;
10
11
12# remove projects that do not build
13unamestr=`uname`
14if [[ "$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
18
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"
21
22elif [[ "$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
25
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"
28else
29   echo "Unsupported operating system, compiling HeuristicLab may not work!"
30fi
31
32
33# switch to MultiDocument MainForm type as Docking doesn't properly work on Linux
34sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.settings > tmp
35mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.settings
36
37sed "s/DockingMainForm/MultipleDocumentMainForm/g" HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs > tmp
38mv tmp HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs
Note: See TracBrowser for help on using the repository browser.