Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/13 14:57:56 (11 years ago)
Author:
ascheibe
Message:

#2084 updated prepare script to work on MacOSX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/prepareProjectsForMono.sh

    r8654 r9702  
    33REP="<Reference Include=\"System.Windows.Forms.DataVisualization\" > \n <HintPath>..\/..\/bin\/System.Windows.Forms.DataVisualization.dll<\/HintPath> \n <\/Reference>"
    44
    5 for filename in $(find -name '*.csproj')
     5for filename in $(find . -name '*.csproj')
    66do   
    77    sed "s/$ORIG/$REP/g" $filename > tmp
     
    1111
    1212# remove projects that do not build
    13 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
    14 mv tmp HeuristicLab.ExtLibs.sln
     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
    1518
    16 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
    17 mv tmp "HeuristicLab 3.3.sln"
     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
    1831
    1932
Note: See TracChangeset for help on using the changeset viewer.