ref: aa1e32f32330a6893ba1661088a6c354c2564d19
dir: /amalgamate.sh/
# Amalgamate the source code, sqlite3 style. set -eu echo "/* This file is a generated distributable version of the minipeg project." echo " * Visit https://github.com/andrewchambers/minipeg for details. */" ( for f in "$@" do case "$f" in *.c) cat "$f" ;; esac done ) | grep '^#include <' | sort -u for f in "$@" do echo "#line 0 \"$f\"" grep -v '^#include' "$f" done