Overview
Comment:--version and --versions switch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 6575fba5e937542552b02e80e6024e1615a50b6865666e64056c5c8aa3c1ddc1
User & Date: gawthrop@users.sourceforge.net on 1998-05-28 09:36:38
Other Links: branch diff | manifest | tags
Context
1998-05-28
09:59:45
Added a - sign on the first line -- bug fix. check-in: 221a1fe57c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:36:38
--version and --versions switch check-in: 6575fba5e9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:31:44
Cosmetic changes check-in: ab94e4fe88 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [6a744d3ca5] to [baf789cfce].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$



## 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
## Updated the odesso representation to use simpar file.
##







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## 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
## Updated the odesso representation to use simpar file.
##
518
519
520
521
522
523
524

525
526
527
528



529
530
531
532
533
534
535
## Revision 1.2  1996/08/05 19:50:55  peter
## Put in fig.fig target.
##
## Revision 1.1  1996/08/04 17:29:42  peter
## Initial revision
##
###############################################################


#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"




# MTT recursion level is zero unless explicitly set
level=0

#Computation mode is octave by default
computation=octave

#By default, the dae and ode representations are different







>




>
>
>







521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
## Revision 1.2  1996/08/05 19:50:55  peter
## Put in fig.fig target.
##
## 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

#By default, the dae and ode representations are different
588
589
590
591
592
593
594




595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
		tidy=untidy ;;
	-l )
                mtt_switches="$mtt_switches $1";
		level=$2; shift ;;
	-A )
                mtt_switches="$mtt_switches $1";
                Solving='Solving';;




	*)
		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 '($Date$)'
  echo 'This is free software with ABSOLUTELY NO WARRANTY.'
  echo 'Type `mtt warranty'\' 'for details.'
  echo
  # Print current directory if in -d mode
  if [ -n "$directory" ]; then
    echo Using directory $directory







>
>
>
>









|







595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
		tidy=untidy ;;
	-l )
                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' $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
  if [ -n "$directory" ]; then
    echo Using directory $directory
646
647
648
649
650
651
652


653
654
655
656
657
658
659
    echo '         -s  use switch (ISW and CSW) components'
    echo '         -d  <dir>  use directory <dir>'
    echo '         -t  tidy mode (default)'
    echo '         -u  untidy mode (leaves files in current dir)'
    echo '         -d  <dir>  use directory <dir>'
    echo '         -D  debug -- leave log files etc'
    echo '         -A  solve algebraic equations symbolically'


    exit
  fi
fi


if [ "$1" = "info" ]  && [ "$3" = "" ]; then
  echo Invoking info







>
>







657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
    echo '         -s  use switch (ISW and CSW) components'
    echo '         -d  <dir>  use directory <dir>'
    echo '         -t  tidy mode (default)'
    echo '         -u  untidy mode (leaves files in current dir)'
    echo '         -d  <dir>  use directory <dir>'
    echo '         -D  debug -- leave log files etc'
    echo '         -A  solve algebraic equations symbolically'
    echo '         --version print version and exit'
    echo '         --versions print version of mtt and components and exit'
    exit
  fi
fi


if [ "$1" = "info" ]  && [ "$3" = "" ]; then
  echo Invoking info


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]