amfora/config/default.sh
Stephen Robinson 0df5effdcf
Mediatypes support (#134)
Co-authored-by: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com>
Co-authored-by: Stephen Robinson <stephen@drsudo.com>
2020-12-14 14:28:07 -05:00

11 lines
208 B
Bash
Executable File

#!/usr/bin/env bash
cat > default.go <<-EOF
package config
//go:generate ./default.sh
EOF
echo -n 'var defaultConf = []byte(`' >> default.go
cat ../default-config.toml >> default.go
echo '`)' >> default.go