Overview
Comment: | Copies (aliased) subsystems first. Include switches in .ps file names. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bcf7cbb66ba6cebf4e1b8d47090c7a6b |
User & Date: | gawthrop@users.sourceforge.net on 2003-06-11 15:48:02 |
Other Links: | branch diff | manifest | tags |
Context
2003-06-11
| ||
16:11:15 | Updated examples for latest MTT. check-in: ac05d5047a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
15:48:02 |
Copies (aliased) subsystems first. Include switches in .ps file names. check-in: bcf7cbb66b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-06-09
| ||
10:49:23 | Include error in out args check-in: 09dff22e59 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [a1669cf4b7] to [9b9196014c].
︙ | ︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Copyright (C) 2001 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.375 2003/05/08 18:42:52 gawthrop ## Generate pdf from ps (using hyperref package for links etc) ## ## Revision 1.374 2003/04/17 20:57:27 geraint ## Added -sort option to allow direct generation of ode2odes.m using sese.m ## instead of ode/csex. ## | > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Copyright (C) 2001 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.376 2003/05/09 09:46:35 gawthrop ## Fixed html output of figures ## ## Revision 1.375 2003/05/08 18:42:52 gawthrop ## Generate pdf from ps (using hyperref package for links etc) ## ## Revision 1.374 2003/04/17 20:57:27 geraint ## Added -sort option to allow direct generation of ode2odes.m using sese.m ## instead of ode/csex. ## |
︙ | ︙ | |||
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 | mtt_versions; exit;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done #Print header if not in quiet (-q) mode. if [ "$quiet" != "quiet" ]; then echo echo 'MTT (Model Transformation Tools) version' $version echo '($Date$)' echo 'This is free software with ABSOLUTELY NO WARRANTY.' echo 'Type `mtt warranty'\' 'for details.' | > > > | 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 | mtt_versions; exit;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done ## Create switches string for adding to file names. MTT_SWITCHES=`echo ${mtt_switches} | sed 's/ //g' | sed 's/^-u-q//'` #Print header if not in quiet (-q) mode. if [ "$quiet" != "quiet" ]; then echo echo 'MTT (Model Transformation Tools) version' $version echo '($Date$)' echo 'This is free software with ABSOLUTELY NO WARRANTY.' echo 'Type `mtt warranty'\' 'for details.' |
︙ | ︙ | |||
2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 | fi ##echo $target ##target=${sys}_${rep}.${lang} ## Arguments ARGS=$4; _ARGS=-$4; __ARGS=`echo $_ARGS | tr ',' '-'` # Save up the argument list in a file; but only if argument has changed #DIFF doesn't like empty files - so put a blank if empty #if [ -z "$ARGS" ]; then # ARGS=' '; # _ARGS=''; #fi | > | 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 | fi ##echo $target ##target=${sys}_${rep}.${lang} ## Arguments ARGS=$4; _ARGS=-$4; __ARGS=`echo $_ARGS | tr ',' '-'` __ARGS="${MTT_SWITCHES}${__ARGS}" # Save up the argument list in a file; but only if argument has changed #DIFF doesn't like empty files - so put a blank if empty #if [ -z "$ARGS" ]; then # ARGS=' '; # _ARGS=''; #fi |
︙ | ︙ | |||
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 | ${MTT_CXX} ${MTT_CXXFLAGS} ${MTT_CXXINCS} -c $< -DCODEGENTARGET=STANDALONE .PRECIOUS: mtt_%.o mtt_%.o: mtt_%.cc echo Compiling mtt_\$*.cc ${MTT_CXX} ${MTT_CXXFLAGS} ${MTT_CXXINCS} -c $< -DCODEGENTARGET=STANDALONE $define_octave_dev # Generates code to write reduce code $1_ode_write.r: $1_def.m def2write_r $1 $2 $computation ifeq ("$sensitivity","sensitivity") ifeq ("$level","0") $1_abg.fig: $sys_abg.fig | > > > > > | 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 | ${MTT_CXX} ${MTT_CXXFLAGS} ${MTT_CXXINCS} -c $< -DCODEGENTARGET=STANDALONE .PRECIOUS: mtt_%.o mtt_%.o: mtt_%.cc echo Compiling mtt_\$*.cc ${MTT_CXX} ${MTT_CXXFLAGS} ${MTT_CXXINCS} -c $< -DCODEGENTARGET=STANDALONE $define_octave_dev # Copy aliased subsystems $1_aliased_subsystems_copied: lbl2component $1 | sh || exit 1 # Grab specified components now touch $1_aliased_subsystems_copied # Generates code to write reduce code $1_ode_write.r: $1_def.m def2write_r $1 $2 $computation ifeq ("$sensitivity","sensitivity") ifeq ("$level","0") $1_abg.fig: $sys_abg.fig |
︙ | ︙ | |||
2737 2738 2739 2740 2741 2742 2743 | $1_rep.txt: makerep_txt $1; endif #SUMMARY rbg raw bond graph (m) #Raw bond graph: fig file to mfile $1_rbg.m: $1_abg.fig $1_lbl.txt | < | | 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 | $1_rep.txt: makerep_txt $1; endif #SUMMARY rbg raw bond graph (m) #Raw bond graph: fig file to mfile $1_rbg.m: $1_abg.fig $1_lbl.txt rbg_fig2m $1 $1_cmp.m: $1_rbg.m $1_fig.fig: $1_rbg.m #SUMMARY sabg stripped acausal bond graph (fig) #SUMMARY sabg stripped acausal bond graph (ps) #SUMMARY sabg stripped acausal bond graph (view) $1_sabg.fig: $1_rbg.m #Subsystem creation commands #SUMMARY sub Executable subsystem list (sh) ifeq ($start_at_abg,yes) $1_sub.sh: $1_abg.m abg2sub_m2sh $1 else %_sub.sh: %_cmp.txt %_aliased_subsystems_copied cmp2sub_txt2sh \$* endif #SUMMARY sub LaTeX subsystem list (tex) #SUMMARY sub subsystem list (ps) #SUMMARY sub subsystem list (view) $1_sub.tex: $1_sub.sh |
︙ | ︙ | |||
3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 | ## Conversion of gdat fig files to ps/pdf ifeq ($ARGS,) # single plot $1_$2.$ps : $1_$2.fig echo Creating $1_$2.$ps fig2dev -L$eps $1_$2.fig > $1_$2.$ps else ## Multiple plots $1_$2.$ps : $1_$2.fig echo Creating $1_$2$__ARGS.$ps fig2dev -L$eps $1_$2$__ARGS.fig > $1_$2$__ARGS.$ps endif endif | > | 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 | ## Conversion of gdat fig files to ps/pdf ifeq ($ARGS,) # single plot $1_$2.$ps : $1_$2.fig echo Creating $1_$2.$ps fig2dev -L$eps $1_$2.fig > $1_$2.$ps else ## Multiple plots $1_$2.$ps : $1_$2.fig mtt -q -r $1 $2 dat $4 echo Creating $1_$2$__ARGS.$ps fig2dev -L$eps $1_$2$__ARGS.fig > $1_$2$__ARGS.$ps endif endif |
︙ | ︙ |