aboutsummaryrefslogtreecommitdiff
path: root/genstatic.sh
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-08-07 22:00:07 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-08-07 22:00:07 +0100
commitd9f97c34439be2d484d27eeb8454cf186e6e5cf7 (patch)
tree98a8d4b48679f9d8ed555ee74f7bf45886229f37 /genstatic.sh
parent55f56418df58d196daa97f3c08e3b6305e831b82 (diff)
Shell script to compile static content
Diffstat (limited to 'genstatic.sh')
-rwxr-xr-xgenstatic.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/genstatic.sh b/genstatic.sh
new file mode 100755
index 0000000..c05d644
--- /dev/null
+++ b/genstatic.sh
@@ -0,0 +1,8 @@
+#!/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'