Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 31055e0cb2871dab337cf0d9813110c33af75abdeb52ee01cc64c7a72278ed46
User & Date: gawthrop@users.sourceforge.net on 1998-03-07 15:15:53
Other Links: branch diff | manifest | tags
Context
1998-03-07
15:23:40
Uses sort_sympar to uniquely produce the sympar list. check-in: 9bd8c00eee user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:15:53
Initial revision check-in: 31055e0cb2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:04:17
dae creation split into 2 parts:
1. create a raw (ie without constitutive relationship) dae (rdae)
2. add the raw dae to the crs to get the dae.
reduce has less work to do with this approach
check-in: 01c7f9426d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/sort_sympar version [883628776a].






































1
2
3
4
5
6
7
8
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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#!/bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: sort_sympar
# Sorts the symbolic parameters in a nice way.
# P.J.Gawthrop March 1998
# Copyright (c) P.J.Gawthrop, 1998.

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


# Step 1: sort by variable name
# Step 2: put all varables with same name on same line


sort -k 1,1  | \
awk '{
    var = $1; sys = $2;
    if (var==oldvar) {
      oldsys=sprintf("%s,%s",oldsys,sys)
    }
    else{
      if (length(oldvar)>0) print oldvar "\t" oldsys;
      oldvar=var; oldsys=sys
    }
}
END{
    print oldvar "\t" oldsys;
}' 


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