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, 1997,1998,1999
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.234 2000/04/04 16:14:08 peterg
## Sorted mtt help
##
## Revision 1.233 2000/03/16 10:16:11 peterg
## Clean no longer zaps the abg.m files
##
## Revision 1.232 2000/03/16 09:43:35 peterg
## Put in $mtt_switches in mtt comand line when creating _state.txt and
## _input.txt
##
|
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
|
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
|
-
+
|
###############################################################
#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"
#Version
version='4.1'
version='4.1++'
# MTT recursion level is zero unless explicitly set
level=0
#Computation mode is octave by default
computation=octave
|
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
|
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
|
-
+
|
echo
fi
fi
#Print what's going on if in verbose mode
if [ -n "$Verbose" ]; then
echo Starting mtt $mtt_switches $1 $2 $3 $4 at level $level
echo " " current wd $PWD
echo " " current wd `pwd`
fi
#Check the principle paths
mtt_check_vars $print
# Exit if just printing paths
if [ "$print" != "" ]; then
|
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
|
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
|
+
-
+
|
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 -p -u Makefile *.* .* MTT_work 2>/dev/null
echo now in `pwd`
cd MTT_work
echo now in `pwd`
if [ -z "$directory" ]; then
Directory=''
else
Directory=$directory/MTT_work
fi
mtt -u -q $mtt_switches -S "$Directory" $1 $2 $3 $4
|