Codebase list certgraph / 716706c web / generate.sh
716706c

Tree @716706c (Download .tar.gz)

generate.sh @716706craw · history · blame

#!/bin/sh
set -e
HTMLFILE="../docs/index.html"
HTML="$(cat $HTMLFILE)"
DATE="$(date)"

cat > index_html.go <<EOL
package web

// Code generated on "$DATE" DO NOT EDIT.

const indexSource = \`$HTML\`

EOL