The script so far...

I've been developing this outside of git so far, so adding now.

Pre-processor is in bash to easily make use of external commands (I'd
use python if the sys calling weren't so obtuse…)