11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
+
+
+
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.264 2000/09/15 08:37:27 peterg
## Fixed bug using -sub in cbg view
##
## Revision 1.263 2000/09/15 07:33:35 peterg
## Replace fig2dev language eps by ps to avoid version problem.
##
## Revision 1.262 2000/09/14 17:16:33 peterg
## Fixes some outstanding bugs:
## perpendicular strokes in cbg.fig
## proper display of hierachical cbg file (-sub and -viewlevel)
|
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
|
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
|
-
+
|
###############################################################
#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"
#Version
version='4.6'
version='4.7'
# MTT recursion level is zero unless explicitly set
level=0
#Computation mode is octave by default
computation=octave
|
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
|
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
|
+
+
+
+
+
+
+
+
|
fi
# Tidy mode - operate in the directory MTT-work
if [ "$tidy" = "tidy" ]; then
mkdir -p MTT_work
cp -p -u Makefile Make *.* .* MTT_work 2>/dev/null
cd MTT_work
if [ -f ".octaverc" ]; then
touch .octaverc
else
echo Copying .octaverc
cp $MTT_LIB/octave/.octaverc .
fi
if [ -z "$directory" ]; then
Directory=''
else
Directory=$directory/MTT_work
fi
mtt -u -q $mtt_switches -S "$Directory" $1 $2 $3 $4
|