︙ | | |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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.348 2002/05/20 08:50:12 geraint
## Cleans _sfun_ae.mexglx.
##
## Revision 1.347 2002/05/20 07:12:05 gawthrop
## Trying to get oct files generated with -oct
##
## Revision 1.346 2002/05/17 11:15:38 gawthrop
## Messages about copying when using -dr now only appear in verbose (-v) mode.
##
## Revision 1.345 2002/05/15 14:22:25 geraint
|
︙ | | |
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
|
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
|
+
+
+
+
+
+
+
+
+
+
|
## Put in fig.fig target.
##
## Revision 1.1 1996/08/04 17:29:42 peter
## Initial revision
##
###############################################################
set_oct() {
## Sets ${m} to oct if such a rep is supported
m=m
supported_reps="ae input logic numpar simpar state"
for supported_rep in ${supported_reps}; do
if [ "${rep}" = "${supported_rep}" ]; then
m=oct
fi
done
}
#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"
#Version
version='4.9'
|
︙ | | |
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
|
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
|
-
|
sub='-sub';
subsystem="_"$2;
shift;;
-oct )
fixcc='-fixcc'
mtt_switches="$mtt_switches $1";
using_oct=yes;
m=oct
;;
-opt ) mtt_switches="$mtt_switches $1";
optimise='-optimise';;
-partition ) mtt_switches="$mtt_switches $1";
partition='-partition';
;;
-pdf ) mtt_switches="$mtt_switches $1";
|
︙ | | |
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
|
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
|
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
|
Subsystem_ese=$Subsystem"_ese"
Subsystem_def=$Subsystem"_def"
Subsystem_rdae=$Subsystem"_rdae"
Subsystem_dae=$Subsystem"_dae"
Subsystem_subs=$Subsystem"_subs"
Subsystem_cr=$Subsystem"_cr"
Subsystem_cbg=$Subsystem"_cbg"
## Create the make target name
#if [ -z "${using_oct}" ]; then
# target=${sys}_${rep}.${lang}
#else
# if [ "${lang}" = "m" ]; then
# target=${sys}_${rep}.oct
# else
# target=${sys}_${rep}.${lang}
# fi
#fi
target=${sys}_${rep}.${lang}
if [ -z "${using_oct}" ]; then
target=${sys}_${rep}.${lang}
else
set_oct;
if [ "${lang}" = "m" ]; then
target=${sys}_${rep}.${m}
else
target=${sys}_${rep}.${lang}
fi
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
|
︙ | | |