Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.152 1998/05/24 15:43:10 peterg +## Added symbolic solution of alg. equations (-A) +## ## Revision 1.151 1998/05/23 16:18:37 peterg ## ordinary differential equation.m files generated with the new ode2lang ## method. ## ## Revision 1.150 1998/05/19 19:47:37 peterg @@ -520,14 +523,18 @@ ## ## Revision 1.1 1996/08/04 17:29:42 peter ## Initial revision ## ############################################################### + #Check $MTTPATH has been set mtt_check_var "$MTTPATH" "MTTPATH" +#Version +version='2.9++' + # MTT recursion level is zero unless explicitly set level=0 #Computation mode is octave by default computation=octave @@ -590,20 +597,24 @@ mtt_switches="$mtt_switches $1"; level=$2; shift ;; -A ) mtt_switches="$mtt_switches $1"; Solving='Solving';; + --version) + echo MTT $version; exit;; + --versions) + 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 2.9++' + echo 'MTT (Model Transformation Tools) version' $version echo '($Date$)' echo 'This is free software with ABSOLUTELY NO WARRANTY.' echo 'Type `mtt warranty'\' 'for details.' echo # Print current directory if in -d mode @@ -648,10 +659,12 @@ echo ' -t tidy mode (default)' echo ' -u untidy mode (leaves files in current dir)' echo ' -d