Overview
Comment:Put back some of the args stuff -- needed for plots.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 3ea326283653a203b17fa563e8e23171dda2e82dc3bad23f3661a14cf2a8a6da
User & Date: gawthrop@users.sourceforge.net on 1998-08-12 12:29:18
Other Links: branch diff | manifest | tags
Context
1998-08-12
13:18:31
Now in e output format check-in: 7a4bb5b5e8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:29:18
Put back some of the args stuff -- needed for plots. check-in: 3ea3262836 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:28:13
Zapped unnecessary np and mp arguments check-in: b241907eaa user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [c3b72d1751] to [192a285bcc].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
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.178  1998/08/11 13:38:35  peterg
## Zapped the obsolete args stuff
##
## Revision 1.177  1998/07/30 17:32:44  peterg
## VERSION 3.0
##
## Revision 1.176  1998/07/27 20:25:15  peterg
## Sorted out new mtt_r2m
##
## Revision 1.175  1998/07/27 18:49:09  peterg
1105
1106
1107
1108
1109
1110
1111

1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129


















1130
1131
1132
1133
1134
1135
1136
1108
1109
1110
1111
1112
1113
1114
1115


















1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140







+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







		REPTYPE='data' ;;
	nifr)
		REPTYPE='data' ;;
	*)
		REPTYPE='tex' ;;
esac


## # Save up the argument list in a file; but only if argument has changed
## ARGS=$4; _ARGS=-$4; __ARGS=`echo $_ARGS | tr ',' '-'`
## 
## #DIFF doesn't like empty files - so put a blank if empty
## if [ -z "$ARGS" ]; then
##   ARGS=' ';
##   _ARGS='';
## fi
## 
## cat > $1_args.new <<EOF
## $ARGS
## EOF
## 
## DIFF=`diff -bq $1_args.m $1_args.new 2>/dev/null`
## 
## if [ -n "$DIFF" ]; then
##   mv $1_args.new $1_args.m
## fi
# Save up the argument list in a file; but only if argument has changed
ARGS=$4; _ARGS=-$4; __ARGS=`echo $_ARGS | tr ',' '-'`

#DIFF doesn't like empty files - so put a blank if empty
if [ -z "$ARGS" ]; then
  ARGS=' ';
  _ARGS='';
fi

cat > $1_args.new <<EOF
$ARGS
EOF

DIFF=`diff -bq $1_args.m $1_args.new 2>/dev/null`

if [ -n "$DIFF" ]; then
  mv $1_args.new $1_args.m
fi

# Tidy mode - operate in the directory MTT-work
if [ "$tidy" = "tidy" ]; then
   mkdir -p MTT_work
   cp -u -p  Makefile *.* .* MTT_work 2>/dev/null
   cd MTT_work
   
1147
1148
1149
1150
1151
1152
1153

1154
1155
1156
1157
1158
1159
1160
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165







+







   if [ "$mtt_status" != "0" ]; then
     echo Exiting MTT with error $mtt_status
     exit 1
   fi

   if [ "$3" != "view" ]; then
    if [ "$3" != "hview" ]; then

      echo Copying  $1_$2.$3
      cp -u -p $1_$2.$3 ..

      if [ "$PLOTTYPE" = "multiple" ]; then
        echo Copying  $1_$2$__ARGS.ps
        cp  $1_$2$__ARGS.ps ..
      fi
1767
1768
1769
1770
1771
1772
1773
1774

1775
1776
1777
1778
1779
1780
1781
1772
1773
1774
1775
1776
1777
1778

1779
1780
1781
1782
1783
1784
1785
1786







-
+







$1_sm.tex: $1_sm.r  $1_sympar.r $1_simp.r
	sm_r2tex $1; latex_tidy $1_sm.tex

#SUMMARY smx	state matrices with variable state x (r)
#SUMMARY smx	state matrices with variable state x (m)
$1_smx.r: $1_def.r $1_def.m $1_ode.r 
		ode2smx_lang $1 r; tidy $1_smx.r
$1_smx.m: $1_def.r $1_def.m $1_ode.r 
$1_smx.m: $1_def.r $1_def.m $1_ode.r $1_sympars.txt
		ode2smx_lang $1 m;

#SUMMARY smc	controller form state matrices etc. - siso only (r)
#SUMMARY smc	controller form state matrices etc. - siso only (tex)
#SUMMARY smc	controller form state matrices etc. - siso only (m)
#SUMMARY smc	controller form state matrices etc. - siso only (view)
#SUMMARY smc	controller form state matrices etc. - siso only (ps)
2033
2034
2035
2036
2037
2038
2039
2040

2041
2042
2043
2044
2045
2046
2047
2038
2039
2040
2041
2042
2043
2044

2045
2046
2047
2048
2049
2050
2051
2052







-
+







	echo Creating $1_odeso.dat
	dat22dat $1 odeso
$1_odes.dat: $1_odes.dat2
	echo Creating $1_odes.dat
	dat22dat $1 odes

#Generic conversion of data files from dat to (gplot) gdat format 
$1_$2.gdat: $1_$2.dat $1_args.m $1_struc.txt
$1_$2.gdat: $1_$2.dat $1_struc.txt  $1_args.m
	dat2gdat $1 $2 $4

#Generic conversion of Latex to latex document
mtt.sty:
	echo Copying mtt.sty to here
	cp $MTTPATH/trans/mtt.sty .
$1_$2.doc: $1_$2.tex
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069


2070
2071




2072
2073
2074
2075
2076
2077
2078
2063
2064
2065
2066
2067
2068
2069



2070
2071
2072
2073
2074

2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085







-
-
-


+
+

-
+
+
+
+







	multi_command2 'fig2dev -Lps' $1 $2.fig $2.ps | sh
endif


ifeq ($REPTYPE,data)
#Create PostScript version of dat file 
#  + another version with Args added to the name if its appropriate
$1_$2.ps: $1_$2.gdat
	gdat2ps $1_$2 '$ARGS';

ifeq ($PLOTTYPE,multiple)
ifneq ($_ARGS,)
$1_$2.ps: $1_$2.gdat
	gdat2ps $1_$2 '$ARGS'
	echo Creating $1_$2$__ARGS.ps
	cp  $1_$2.ps $1_$2$__ARGS.ps
	cp $1_$2.ps $1_$2$__ARGS.ps
else
$1_$2.ps: $1_$2.gdat
	gdat2ps $1_$2 '$ARGS'
endif
endif

endif

ifeq ($REPTYPE,tex)
#Create PostScript version of dvi file
2129
2130
2131
2132
2133
2134
2135
2136

2137
2138
2139
2140
2141
2142
2143
2136
2137
2138
2139
2140
2141
2142

2143
2144
2145
2146
2147
2148
2149
2150







-
+








#Generate pdf
$1_$2.pdf: $1_$2.ps
	echo Creating $1_$2.pdf
	ps2pdf $1_$2.ps $1_$2.pdf

#Report generation
$1_rep.make: $1_rep.txt $1_args.m
$1_rep.make: $1_rep.txt
	rep_txt2make $1 "$mtt_switches"

reps_made:
	rep_txt2sh $1;  touch reps_made

$1_rep.tex: $1_rep.txt reps_made
	rep_txt2tex $1 "$documenttype" "$directory";


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