From d9f97c34439be2d484d27eeb8454cf186e6e5cf7 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 7 Aug 2016 22:00:07 +0100 Subject: Shell script to compile static content --- genstatic.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 genstatic.sh (limited to 'genstatic.sh') 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' -- cgit v1.2.3