diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-04-17 14:15:52 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-04-17 14:15:52 -0700 |
commit | 01c8c35ca3d3424a9473dd22ea2456933b3e8d36 (patch) | |
tree | de582cb9ef3e449f24015dec09f80e998806b26a /csharp/mono/generatesource.sh | |
parent | 813d6d652d8091e9365bfbd01efb5f2ee8bdfbce (diff) | |
parent | 1eab56aee8dddcb656db67d9fb87a8cc6a2ac112 (diff) | |
download | protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.tar.gz protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.tar.bz2 protobuf-01c8c35ca3d3424a9473dd22ea2456933b3e8d36.zip |
Merge pull request #2 from jtattermusch/csharp_protobuf_imported
Pulling protobuf-csharp-port into csharp/ directory
Diffstat (limited to 'csharp/mono/generatesource.sh')
-rwxr-xr-x | csharp/mono/generatesource.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/csharp/mono/generatesource.sh b/csharp/mono/generatesource.sh new file mode 100755 index 00000000..218449e2 --- /dev/null +++ b/csharp/mono/generatesource.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +echo Compiling protobufs +rm -rf tmp +mkdir tmp +PROTOS_DIR=../protos + +./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \ + $PROTOS_DIR/google/protobuf/descriptor.proto \ + $PROTOS_DIR/google/protobuf/csharp_options.proto \ + $PROTOS_DIR/google/protobuf/unittest.proto \ + $PROTOS_DIR/google/protobuf/unittest_csharp_options.proto \ + $PROTOS_DIR/google/protobuf/unittest_custom_options.proto \ + $PROTOS_DIR/google/protobuf/unittest_embed_optimize_for.proto \ + $PROTOS_DIR/google/protobuf/unittest_import.proto \ + $PROTOS_DIR/google/protobuf/unittest_mset.proto \ + $PROTOS_DIR/google/protobuf/unittest_optimize_for.proto \ + $PROTOS_DIR/tutorial/addressbook.proto + +cd tmp +echo Generating new source +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 |