Overview
Comment:Ingnore if/endif
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 4f8ed70a5feb6840bbd1df125ff3abfa1fe932abeabc74ca4633e79bf44aa856
User & Date: gawthrop@users.sourceforge.net on 2003-08-19 13:08:44
Other Links: branch diff | manifest | tags
Context
2003-08-19
13:09:48
Debugging -still wrong check-in: d02835d435 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:08:44
Ingnore if/endif check-in: 4f8ed70a5f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:07:27
More details in hyperref otions. check-in: 7a84526370 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_update from [d0d93f3d1d] to [12b2c25398].

9
10
11
12
13
14
15



16
17
18
19
20
21
22
# Copyright (C) 2000 by Peter J. Gawthrop

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



## Revision 1.20  2003/08/13 15:49:39  gawthrop
## Don't sort the states when defaulting - leave in implied order
##
## Revision 1.19  2003/08/05 15:29:36  gawthrop
## Now handles ss.r files with implicit zero values
##
## Revision 1.18  2003/08/04 09:10:30  gawthrop







>
>
>







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.21  2003/08/14 10:33:46  gawthrop
## Ignore if and endif
##
## Revision 1.20  2003/08/13 15:49:39  gawthrop
## Don't sort the states when defaulting - leave in implied order
##
## Revision 1.19  2003/08/05 15:29:36  gawthrop
## Now handles ss.r files with implicit zero values
##
## Revision 1.18  2003/08/04 09:10:30  gawthrop
109
110
111
112
113
114
115

116
117
118
119
120
121
122
123
124

125
126
127
128
129
130
131
	value=${default}
    fi
}

## Remove if, end and endif from list
remove_if() {
    file=$1

    tmpfile="$1_tmp"
    
    mv ${file} ${tmpfile}
    grep -v 'if[ (]\|endif;' <${tmpfile} > ${file} 

    ## Delete empty file
    size=`ls -s ${file} | awk '{print $1}'`
    if [ "${size}" = "0" ]; then
	rm $file

    fi
 }
 rm -f mtt_empty
 touch mtt_empty

 case $rep in
     numpar)







>
|

|
|

|
|
|
|
>







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
	value=${default}
    fi
}

## Remove if, end and endif from list
remove_if() {
    file=$1
    if [ -f ${file} ]; then
      tmpfile="$1_tmp"
    
      mv ${file} ${tmpfile}
      grep -v 'if[ (]\|endif;' <${tmpfile} > ${file} 

      ## Delete empty file
      size=`ls -s ${file} | awk '{print $1}'`
      if [ "${size}" = "0" ]; then
	  rm $file
      fi
    fi
 }
 rm -f mtt_empty
 touch mtt_empty

 case $rep in
     numpar)


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