diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-08-07 22:00:07 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-08-07 22:00:07 +0100 |
commit | d9f97c34439be2d484d27eeb8454cf186e6e5cf7 (patch) | |
tree | 98a8d4b48679f9d8ed555ee74f7bf45886229f37 | |
parent | 55f56418df58d196daa97f3c08e3b6305e831b82 (diff) |
Shell script to compile static content
-rwxr-xr-x | genstatic.sh | 8 |
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' |