
\let\DUMP=\dump
\let\dump=\endinput

\input lualatex.ini

\toksapp\everyjob{%
    \documentclass{article}
    \input minim-mp
    \message{This is the minim-latex metapost processor.}\relax
    \directlua {require('minim-mp').on_line = true}%
    \newmetapostinstance[jobname="\jobname", mathmode="scaled"]\MP
    \runmetapost\MP{input "\jobname";}%
    \directlua {require('minim-mp').shipout(\the\MP)}%
    \closemetapostinstance\MP
    \csname @fileswfalse\endcsname\end{document}}

\let\dump=\DUMP
\dump

