#!/bin/sh
# CHANGELOG.md as C string literals, for src/changelog.inc: the text pic's
# /changelog shows, compiled in so the binary needs no file.
set -eu
awk 'BEGIN { print "/* Generated from CHANGELOG.md by tools/changelog-inc.sh; do not edit. */" }
     { gsub(/\\/, "\\\\"); gsub(/"/, "\\\""); printf "\"%s\\n\"\n", $0 }' "${1:-CHANGELOG.md}"
