Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make generate_protos.sh Windows-friendly. #386

Merged
merged 1 commit into from May 14, 2015

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented May 14, 2015

To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:

  • adds generation of the address book tutorial proto,
  • fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
  • fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
  • includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change

To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:
- adds generation of the address book tutorial proto,
- fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
- fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
- includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change
@jskeet
Copy link
Contributor Author

jskeet commented May 14, 2015

@jtattermusch to review.

@jtattermusch
Copy link
Contributor

LGTM

@jtattermusch
Copy link
Contributor

@anandolee, this is the last pull request against csharp branch. I suggest we merge this one (into csharp branch), then propagate the change to master.

After that, we can just delete the csharp branch entirely. Sounds good?

@anandolee
Copy link
Contributor

delete the csharp branch sounds good to me

jtattermusch added a commit that referenced this pull request May 14, 2015
Make generate_protos.sh Windows-friendly.
@jtattermusch jtattermusch merged commit b541e2a into protocolbuffers:csharp May 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants