<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>mono/readme.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,8 @@ dist/
 *.suo
 _ReSharper.*
 *.sln.cache
-mono/*.dll
+mono/bin
 mono/tmp
-mono/*.exe
+mono/protoc
+mono/TestResult.xml
+mono/.libs</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1,36 @@
 #!/bin/bash
 
-export SRC=../src
-export LIB=../lib
+# Adjust these to reflect the location of NUnit in your system,
+# and how you want NUnit to run
+NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
+NUNIT_OPTIONS=-noshadow
+
+# The rest should be okay.
+
+SRC=../src
+LIB=../lib
+
+rm -rf bin
+mkdir bin
+
+# Running the unit tests requires the dependencies are
+# in the bin directory too
+cp -f $LIB/{Rhino.Mocks.dll,nunit.framework.dll} bin
 
 echo Building main library
-gmcs -target:library -out:Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$SRC/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk
+gmcs -target:library -out:bin/Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$SRC/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk
 
 echo Building main library tests
-gmcs -target:library -out:Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$SRC/ProtocolBuffers.Test/Properties/Google.ProtocolBuffers.Test.snk -r:Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dll
+gmcs -target:library -out:bin/Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$SRC/ProtocolBuffers.Test/Properties/Google.ProtocolBuffers.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dll
 
 echo Running main library tests
-mono ~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe Google.ProtocolBuffers.Test.dll -noshadow
+mono $NUNIT bin/Google.ProtocolBuffers.Test.dll $NUNIT_OPTIONS
 
 echo Building ProtoGen
-gmcs -target:exe -out:ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$SRC/ProtoGen/Properties/Google.ProtocolBuffers.ProtoGen.snk -r:Google.ProtocolBuffers.dll
+gmcs -target:exe -out:bin/ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$SRC/ProtoGen/Properties/Google.ProtocolBuffers.ProtoGen.snk -r:bin/Google.ProtocolBuffers.dll
 
 echo Building ProtoGen tests
-gmcs -target:library -out:Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$SRC/ProtoGen.Test/Properties/Google.ProtocolBuffers.ProtoGen.Test.snk -r:Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:ProtoGen.exe
+gmcs -target:library -out:bin/Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$SRC/ProtoGen.Test/Properties/Google.ProtocolBuffers.ProtoGen.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:bin/ProtoGen.exe
 
 echo Running ProtoGen tests
-mono ~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe Google.ProtocolBuffers.ProtoGen.Test.dll -noshadow
-
+mono $NUNIT bin/Google.ProtocolBuffers.ProtoGen.Test.dll $NUNIT_OPTIONS</diff>
      <filename>mono/buildall.sh</filename>
    </modified>
    <modified>
      <diff>@@ -19,10 +19,11 @@ PROTOS_DIR=../protos
 
 cd tmp
 echo Generating new source
-mono ../ProtoGen.exe compiled.pb
+mono ../bin/ProtoGen.exe compiled.pb
 
 echo Copying source into place
 cp DescriptorProtoFile.cs CSharpOptions.cs ../../src/ProtocolBuffers/DescriptorProtos
 cp UnitTest*.cs ../../src/ProtocolBuffers.Test/TestProtos
 cp AddressBookProtos.cs ../../src/AddressBook
 cd ..
+rm -rf tmp</diff>
      <filename>mono/generatesource.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ea5261ee858f7007697f4b60b6fcbeac01d343e2</id>
    </parent>
  </parents>
  <author>
    <name>Jon Skeet</name>
    <email>jonskeet@google.com</email>
  </author>
  <url>http://github.com/jskeet/dotnet-protobufs/commit/8be61a3c8d47c31b277aa0d8b35d55c503fa414c</url>
  <id>8be61a3c8d47c31b277aa0d8b35d55c503fa414c</id>
  <committed-date>2009-06-25T12:31:26-07:00</committed-date>
  <authored-date>2009-06-25T12:31:26-07:00</authored-date>
  <message>Mono build file improvements and readme</message>
  <tree>5d02d01d3a991be1e40fc4d371d8c48fea9a1ca9</tree>
  <committer>
    <name>Jon Skeet</name>
    <email>jonskeet@google.com</email>
  </committer>
</commit>
