Overview
Comment:Added the update switch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 826a543aaeda512514d7c4dd250a5362c05a38b7b93839bd8774daabf082d171
User & Date: gawthrop@users.sourceforge.net on 2000-10-12 15:11:30
Other Links: branch diff | manifest | tags
Context
2000-10-12
15:11:54
Added the update function for numpar only check-in: 50e27df159 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:11:30
Added the update switch check-in: 826a543aae user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:45:13
Put in the no-file version check-in: dfc38970f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_update from [720294f8fa] to [b0f6b994e2].

9
10
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
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.1  2000/10/12 12:32:23  peterg
## Initial revision
##
##
###############################################################


sys=$1 # System name
rep=$2 # System representation








textfile=$1_$2.txt
infofile=$1_sympar.txt
default='0.0'

if [ -f "$textfile" ]; then
  # Inform User
  echo Checking $textfile
else
  sympar2numpar_txt2txt $1
  exit    







>
>
>









>

>
>
>
>
>
>
|
|
|







9
10
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
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  2000/10/12 13:45:13  peterg
## Put in the no-file version
##
## Revision 1.1  2000/10/12 12:32:23  peterg
## Initial revision
##
##
###############################################################


sys=$1 # System name
rep=$2 # System representation
update=$3 # Update or not

if [ -z "$2" ]; then
  echo Usage mtt_update system representation [update]    
  exit
fi

ext=txt
textfile=$1_$2.$ext
infofile=$1_sympar.$ext
default='1.0'

if [ -f "$textfile" ]; then
  # Inform User
  echo Checking $textfile
else
  sympar2numpar_txt2txt $1
  exit    
58
59
60
61
62
63
64















65
66
67
68
69
70
71
  }
  for (iname in info) {
    if (!(iname in text)) print iname >> "mtt_in_info"
  }
  }'  default=$default mtt_text mtt_info

















answered=''
if [ -f "mtt_in_text" ]; then
  in_text=`cat mtt_in_text`
  echo "The following variables are defined in $textfile, but do not exist:"
  echo $in_text    

  while [ -z "$answered" ]; do







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  }
  for (iname in info) {
    if (!(iname in text)) print iname >> "mtt_in_info"
  }
  }'  default=$default mtt_text mtt_info


if [ -z "$update" ]; then
  if [ -f "mtt_in_text" ]; then
    in_text=`cat mtt_in_text`
    echo "The following variables are defined in $textfile, but do not exist:"
    echo $in_text
    echo Use mtt $sys $rep $ext to update
  fi
  if [ -f "mtt_in_info" ]; then
    in_info=`cat mtt_in_info`
    echo "The following variables are defined in $infofile, but do not exist:"
    echo $in_info
    echo Use mtt $sys $rep $ext to update
  fi
  exit    
fi
answered=''
if [ -f "mtt_in_text" ]; then
  in_text=`cat mtt_in_text`
  echo "The following variables are defined in $textfile, but do not exist:"
  echo $in_text    

  while [ -z "$answered" ]; do


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