Codebase list certgraph / 1aac5f6 web / generate.sh
1aac5f6

Tree @1aac5f6 (Download .tar.gz)

generate.sh @1aac5f6raw · 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