Overview
Comment: | Added mtt_prepend.sh, -p preserves time attribute of base file - eliminates error in dependencies due to update of ese.r by modpar.r. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b47b852b724c2305a4ff7998572048d6 |
User & Date: | geraint@users.sourceforge.net on 2001-04-05 03:46:13 |
Other Links: | branch diff | manifest | tags |
Context
2001-04-05
| ||
11:49:07 | Fixed a number of bugs to as to work with reports. check-in: a6e307d2da user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
03:46:13 |
Added mtt_prepend.sh, -p preserves time attribute of base file - eliminates error in dependencies due to update of ese.r by modpar.r. check-in: b47b852b72 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2001-04-04
| ||
10:06:49 | New ssim (sensitiveity simulation) rep check-in: aa507541d5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [6e35e98061] to [496bfee36c].
︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## 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 ## Resolved $sys name clash when using -s ## | > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## 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 ## Resolved $sys name clash when using -s ## |
︙ | ︙ | |||
1390 1391 1392 1393 1394 1395 1396 | rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct rm -f *_ode.oct *_odeo.oct 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 | | | 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 | rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct rm -f *_ode.oct *_odeo.oct 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 MTT.core rm -f *_modpar.txt *_modpar.r rm -fR *_rep MTT_work exit fi # Clean up named system if [ "$2" = "Clean" ] && [ "$3" = "" ]; then |
︙ | ︙ | |||
2315 2316 2317 2318 2319 2320 2321 | #Differential-algebraic equations ${sys}_rdae.r: ${sys}_ese.r ${sys}_def.r $1_modpar.r ifneq ($partition,) echo Doing subsystems mtt_make_subsystems ${sys} rdae r endif | | | 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 | #Differential-algebraic equations ${sys}_rdae.r: ${sys}_ese.r ${sys}_def.r $1_modpar.r ifneq ($partition,) echo Doing subsystems mtt_make_subsystems ${sys} rdae r endif 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 mtt_make_subsystems ${sys} dae r endif |
︙ | ︙ |
Added mttroot/mtt/bin/trans/mtt_prepend.sh version [54c96812fa].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | #! /bin/sh usage () { cat <<EOF Usage: $0 [-p] file1 file2 prepend file1 to file2 options: -p preserves time attribute EOF } preserve='' while [ "`echo $1 | grep '^-'`" ]; do case $1 in -p) preserve='-p' ;; -h) usage exit ;; *) echo "Error: invalid option ($1)" usage; exit; ;; esac shift done if [ $# -ne 2 ]; then usage; exit; fi file1=$1 file2=$2 tmp=mtt_prepend.sh_$file1_$file2.tmp if [ ${preserve:=""} = "-p" ]; then time=mtt_prepend.sh_$file2.time touch -r $file2 $time fi cat $file1 $file2 > $tmp if [ ${preserve:=""} = "-p" ]; then touch -r $time $tmp rm $time fi cp $preserve $tmp $file2 rm $tmp |