summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.generated.storage.dht.proto/generate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.generated.storage.dht.proto/generate.sh')
-rwxr-xr-xorg.eclipse.jgit.generated.storage.dht.proto/generate.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.generated.storage.dht.proto/generate.sh b/org.eclipse.jgit.generated.storage.dht.proto/generate.sh
new file mode 100755
index 0000000000..f80989503f
--- /dev/null
+++ b/org.eclipse.jgit.generated.storage.dht.proto/generate.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Update generated Java code from protocol buffer descriptions.
+
+set -e
+
+for proto in resources/org/eclipse/jgit/storage/dht/*.proto
+do
+ echo >&2 Generating from $proto
+ protoc -Iresources --java_out=src $proto
+done