aboutsummaryrefslogtreecommitdiff
path: root/regen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regen.sh')
-rwxr-xr-xregen.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/regen.sh b/regen.sh
new file mode 100755
index 0000000..f525b15
--- /dev/null
+++ b/regen.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Run this script from the root of the repo to regenerate static content.
+
+set -xue
+
+go get -u github.com/mjibson/esc
+${GOPATH}/bin/esc -ignore '\.go' -prefix 'server' \
+ -o 'server/static/static.go' -pkg 'static' 'server/static'
+
+go get -u github.com/golang/protobuf/protoc-gen-go
+protoc --go_out=plugins=grpc:. proto/signer.proto