Overview
Comment:Removed bashism.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ed7b2df1ecadf900671dd90f76a83ef7849a57e07c4b4302773ddba4cd1a8319
User & Date: geraint@users.sourceforge.net on 2008-09-30 14:16:43
Other Links: branch diff | manifest | tags
Context
2008-10-04
15:42:10
Dash chokes on backtick, so replaced with check-in: 166c285ec2 user: geraint@users.sourceforge.net tags: origin/master, trunk
2008-09-30
14:16:43
Removed bashism. check-in: ed7b2df1ec user: geraint@users.sourceforge.net tags: origin/master, trunk
2008-07-22
17:38:32
Replace positional parameter 1 with hard-coded path when converting
mttrc to mtt.conf

Strict Bourne shells cannot cope with positional parameters when sourcing. check-in: 18fca07335 user: geraint@users.sourceforge.net tags: origin/master, trunk

Changes

Modified mttroot/mtt/bin/trans/mtt_make_sympar from [fb9ff055b0] to [ce08d18b4a].

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.11  2002/04/28 18:41:27  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
## Revision 1.10  2001/07/28 21:10:18  geraint
## Generate warning instead of error if reserved word used.
##







>
>
>
>







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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.12  2004/09/02 22:06:09  geraint
## Does not issue warnings about Reduce reserved words if the
## second argument (use_reduce) is "no".
##
## Revision 1.11  2002/04/28 18:41:27  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
## Revision 1.10  2001/07/28 21:10:18  geraint
## Generate warning instead of error if reserved word used.
##
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
          printf("%s%s", comma, sysname[j]);
          comma=",";
        }
        printf("\n")

}' < mtt_sympar.txt >$filename

if [ ! "${use_reduce}" == "no" ]; then
    reserved_words=`\
    cat ${MTT_LIB}/reduce/reserved_words.txt	|\
    gawk '{printf "%s ", $0}'			|\
    tr [a-z] [A-Z]`
    sympar_words=`\
    cat ${filename}				|\
    cut -f1					|\







|







111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
          printf("%s%s", comma, sysname[j]);
          comma=",";
        }
        printf("\n")

}' < mtt_sympar.txt >$filename

if [ ! "${use_reduce}" = "no" ]; then
    reserved_words=`\
    cat ${MTT_LIB}/reduce/reserved_words.txt	|\
    gawk '{printf "%s ", $0}'			|\
    tr [a-z] [A-Z]`
    sympar_words=`\
    cat ${filename}				|\
    cut -f1					|\


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