Skip to content

Commit

Permalink
Add script to recompile .proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmikk committed Feb 9, 2021
1 parent 19291a8 commit 73eeb7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions genproto.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

dir=$(dirname $0)
[ -n "$dir" ] && cd $dir

protoc --go_out=../../.. nmsg.proto
cd nmsg_base
protoc --go_out=../../../.. *.proto
2 changes: 1 addition & 1 deletion nmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

//go:generate protoc --go_out=. nmsg.proto
//go:generate ./genproto.sh

package nmsg

Expand Down

0 comments on commit 73eeb7a

Please sign in to comment.