Skip to content

Instantly share code, notes, and snippets.

@Pwera
Created June 20, 2019 13:47
Show Gist options
  • Save Pwera/6e2a4d5a40025c423d9ae1cbdec320fd to your computer and use it in GitHub Desktop.
Save Pwera/6e2a4d5a40025c423d9ae1cbdec320fd to your computer and use it in GitHub Desktop.
#!/bin/bash \
FILES=/root/*.proto
for f in $FILES
do
PB=$(echo $f | cut -d'/' -f3-)
protoc --plugin=/usr/local/bin/protoc-gen-go $PB --go_out=src/go
protoc $PB --cpp_out=src/cpp
protoc $PB --java_out=src/java
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment