Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -17,23 +17,69 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.3 1996/08/09 15:13:13 peter +## Generic viewing of any representation via ps files implemented. +## ## 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 ## ############################################################### +echo +echo 'MTT (Model Transformation Tools) version 2.0' +echo 'This is free software with ABSOLUTELY NO WARRANTY.' +echo 'Type `mtt warranty'\' 'for details.' +echo + +if [ "$1" = "" ]; then + echo 'Usage: mtt info' + echo ' mtt warranty' + echo ' mtt system_name representation language' + exit +fi + +if [ "$1" = "info" ] && [$2 = ""]; then + info -f $MTTPATH/../doc/mtt.info + exit +fi + +if [ "$1" = "warranty" ] && [$2 = ""]; then + cat << EOF +Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995,1996 Peter J. Gawthrop +This is free software with ABSOLUTELY NO WARRANTY. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, write to the Free Software +Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +EOF + exit +fi -echo " ###################################################" -echo " ###### MTT (Model Transformation Tools) V2.0 ######" -echo " ###################################################" +if [ "$1" = "clean" ] && [$2 = ""]; then + echo 'Removing log, dvi and ps files' + rm *.log *.dvi *.ps + exit +fi +# This is the main mtt programme + make -s -f - $1_$2.$3 << EOF #Create acausal bond graph figure using xfig $1_abg.fig: $FIG $1_abg.fig & @@ -224,10 +270,11 @@ endif endif #View a ps file $1_$2.view: $1_$2.ps + echo Creating view of $1_$2 ghostview $1_$2.ps& #Report generation $1_rep.tex: $1_sum.tex $1_dae.tex $1_lbl.txt $1_sympar.r $1_cr.r \ $1_abg.ps