#!/bin/ksh
i=`echo $1 | sed -e "s/\(.*\)\.mtn$/\1/"`
$ZOOM/pro/exe/mtn.exe >>mtn.lis <<EOI
&V$i.f
&U$ZOOM/$ZOOM_VER/mac/mtn.mac
&U$i.mtn
&E
EOI
##f77 -o $i.exe $i.f `cernlib mathlib`
gfortran -o $i.exe $i.f `cernlib mathlib`

