Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -17,10 +17,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.10 1996/08/15 07:44:24 peter +## Now handles generic transformations using %. +## ## Revision 1.9 1996/08/14 09:16:08 peter ## Step response now goes through m, dat and gdat conversions ## ## Revision 1.8 1996/08/12 20:19:52 peter ## Arguments now passed via $1_args.m file @@ -89,27 +92,34 @@ EOF exit fi if [ "$1" = "clean" ] && [$2 = ""]; then - echo 'Removing log, dvi and ps files' - rm *.log *.dvi *.ps + echo 'Removing log, dat, gdat, doc, dvi and ps files' + rm -f *.log *.dat *.gdat *.doc *.dvi *.ps exit fi -# Save up the argument list in a file. -cat > macmic_args.m < $1_args.new < /dev/null + +#Create PostScript version of dat file +%.ps: %.gdat + gdat2ps $1_$2 '$ARGS' #Create PostScript version of fig files %.ps : %.fig echo Creating $1_$2.ps fig2dev -Lps $1_$2.fig >$1_$2.ps @@ -302,19 +326,21 @@ #Create PostScript version of dvi file %.ps: %.dvi echo Creating $1_$2.ps dvips -o $1_$2.ps $1_$2 -#Create PostScript version of dat file -%.ps: %.gdat - gdat2ps $1_$2 - #View a ps file -%.view: %.ps +$1_$2.view: $1_$2.ps echo Creating view of $1_$2 ghostview $1_$2.ps& + +#View a gdat file +#%.view: %.gdat +# echo Creating view of $1_$2 +# gdat2view $1_$2 '$ARGS'& + #Report generation $1_rep.tex: $1_sum.tex $1_dae.tex $1_lbl.txt $1_sympar.r $1_cr.r \ $1_abg.ps echo Creating $1_rep.tex