Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.300 2001/04/04 10:06:49 gawthrop +## New ssim (sensitiveity simulation) rep +## ## Revision 1.299 2001/04/03 14:49:42 gawthrop ## Revised to incorporate new ssim (sensitivity simulation) ## representation (m only just now). ## ## Revision 1.298 2001/04/02 17:36:20 gawthrop @@ -1392,11 +1395,11 @@ rm -f *_cseo.cc *_input.cc *_simpar.cc *_smxax.cc rm -f *_csex.cc *_numpar.cc *_smxa.cc *_state.cc rm -f *_ode.cc *_odeo.cc rm -f *_logic.m *_logic.cc *_logic.oct rm -f *_state.m *_state.cc *_state.oct - rm -f *_ode2odes.* *.dat2 + rm -f *_ode2odes.* *.dat2 MTT.core rm -f *_modpar.txt *_modpar.r rm -fR *_rep MTT_work exit fi @@ -2317,11 +2320,11 @@ ${sys}_rdae.r: ${sys}_ese.r ${sys}_def.r $1_modpar.r ifneq ($partition,) echo Doing subsystems mtt_make_subsystems ${sys} rdae r endif - mv $1_ese.r mtt_junk; cat $1_modpar.r mtt_junk > $1_ese.r # Add modulated parameters to start + mtt_prepend.sh -p $1_modpar.r $1_ese.r # Add modulated parameters to start ese2rdae_r ${Subsystem}; tidy ${Subsystem}_rdae.r ${sys}_dae.r: ${Subsystem}_rdae.r ${Subsystem}_def.r ${Subsystem}_subs.r ${Subsystem}_cr.r ifneq ($partition,) echo Doing subsystems ADDED mttroot/mtt/bin/trans/mtt_prepend.sh Index: mttroot/mtt/bin/trans/mtt_prepend.sh ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/mtt_prepend.sh @@ -0,0 +1,60 @@ +#! /bin/sh + +usage () +{ +cat < $tmp + +if [ ${preserve:=""} = "-p" ]; then + touch -r $time $tmp + rm $time +fi + +cp $preserve $tmp $file2 +rm $tmp +