Codebase list certgraph / 4195b2f web / generate.sh
4195b2f

Tree @4195b2f (Download .tar.gz)

generate.sh @4195b2fraw · 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