Codebase list certgraph / 7939506 web / generate.sh
7939506

Tree @7939506 (Download .tar.gz)

generate.sh @7939506raw · 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