11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################
# Create the menu structure and pipe into wish
reps_txt2tk < $MTTPATH/REPS | wish -name xmtt
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
>
>
>
|
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright (c) P.J.Gawthrop, 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1 1998/10/20 08:15:17 peterg
## Initial revision
##
###############################################################
#Look for a command line argument
while [ -n "`echo $1 | grep '^-'`" ]; do
case $1 in
-update ) echo Creating representation list for mtt;
mtt2reps_txt> $MTTPATH/REPS;
echo Creating examples list for mtt;
mtt -q help examples> $MTTPATH/EXAMPLES;;
-example ) examples='examples';;
*)
echo "$1 is an invalid argument - ignoring" ;;
esac
shift
done
if [ -n "$examples" ]; then
mtt -q copy $1;
cd $1;
xmtt
exit
fi
# Use wish
reps_txt2tk | wish -name xmtt
|