\usepackage{graphicx}
\usepackage{copytofile}

\newif \ifmlpostdvi
\AtBeginDocument {\@ifundefined {WhizzyMode}{}{\mlpostdvitrue}}
\edef \MLPOSTNAME{\jobname}

\newenvironment{mlpost}[2][]
  {\ifmlpostdvi \IfFileExists{\MLPOSTNAME:#2.fonts}
        {\input {\MLPOSTNAME:#2.fonts}}{}\fi%
   \IfFileExists{\MLPOSTNAME:#2.mps}
        {\includegraphics[#1]{\MLPOSTNAME:#2.mps}}{}%
   \copytofile{#2}}
  {}


