Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/prepareProjectsForMono.sh @ 9764

Last change on this file since 9764 was 9702, checked in by ascheibe, 11 years ago

#2084 updated prepare script to work on MacOSX

File size: 2.1 KB
RevLine 
[8633]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
[9702]5for filename in $(find . -name '*.csproj')
[8633]6do   
7    sed "s/$ORIG/$REP/g" $filename > tmp
8    mv tmp $filename
9done;
10
[8654]11
[8633]12# remove projects that do not build
[9702]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
[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]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
[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"
28else
29   echo "Unsupported operating system, compiling HeuristicLab may not work!"
30fi
31
32
[8654]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.