Overview
Comment: | Fixed a funny with tr - changed SEPS and REPS - something to do with ^ |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
83f92d122da85ab71d12a75c7deb8a92 |
User & Date: | gawthrop@users.sourceforge.net on 2001-07-04 06:00:12 |
Other Links: | branch diff | manifest | tags |
Context
2001-07-05
| ||
08:42:43 | Updated to allow auto-generation of sensitivity version check-in: e1825154c8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2001-07-04
| ||
06:00:12 | Fixed a funny with tr - changed SEPS and REPS - something to do with ^ check-in: 83f92d122d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
05:19:57 | Added RT & CT to list check-in: 5b94a1f272 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/abg2sympar_m2txt from [8892b22156] to [a7c4d6974d].
︙ | ︙ | |||
9 10 11 12 13 14 15 | # Label file to symbolic parameters conversion # Copyright (C) 2000 by Peter J. Gawthrop # Inform user #echo "Creating $1_sympar.txt" # Separation characters | | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Label file to symbolic parameters conversion # Copyright (C) 2000 by Peter J. Gawthrop # Inform user #echo "Creating $1_sympar.txt" # Separation characters SEPS='^=*;+/()-' # Replace by , REPS='[,*]' SystemName=$2 UseLabelFile=$3 if [ -n "$UseLabelFile" ]; then ## Take input from lbl.txt strip_comments < $1_lbl.txt | tr $SEPS $REPS |\ awk '{printf("%s %s \"%s\",\n",$1,$2,$3)}' > mtt_stripped_file |
︙ | ︙ |
Modified mttroot/mtt/bin/trans/mtt_make_sympar from [98b234b4d2] to [7cd064f8ce].
︙ | ︙ | |||
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.6 2001/04/10 12:54:50 gawthrop ## Minor fixes for sensitivity versions ## ## Revision 1.5 2000/11/03 14:57:06 peterg ## Corrected regexp notvar ## ## Revision 1.4 2000/11/02 18:53:46 peterg | > > > | 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.7 2001/04/13 07:14:12 geraint ## Implemented lower level lbl.txt recognition of #NOT[V|P]AR ## ## Revision 1.6 2001/04/10 12:54:50 gawthrop ## Minor fixes for sensitivity versions ## ## Revision 1.5 2000/11/03 14:57:06 peterg ## Corrected regexp notvar ## ## Revision 1.4 2000/11/02 18:53:46 peterg |
︙ | ︙ | |||
38 39 40 41 42 43 44 | sys=$1 # System name filename=$1_sympar.txt # Inform user echo Creating $filename # Create list of all sympars including those that are aliased sh $1_type.sh 'echo ' ' ' ' ' |\ | | | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | sys=$1 # System name filename=$1_sympar.txt # Inform user echo Creating $filename # Create list of all sympars including those that are aliased sh $1_type.sh 'echo ' ' ' ' ' |\ awk '{printf("abg2sympar_m2txt %s %s\n ", $1, $2)}' |\ sh | sort -u > mtt_all_sympar.txt # Sort the aliased list mtt_strip_args < $1_aliased.txt | sort -u > mtt_aliased_sort.txt # Create list of unwanted stuff cat mtt_aliased_sort.txt> mtt_unwanted.txt |
︙ | ︙ |
Modified mttroot/mtt/bin/trans/mtt_strip_args from [6eac46312c] to [9071d8da44].
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 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: strip args # Strips unwanted bits from a list of arguments # Label file to symbolic parameters conversion # Copyright (C) 2000 by Peter J. Gawthrop ## $Id$ ## ## $Log$ ## Revision 1.4 2001/05/08 15:18:10 gawthrop ## Added trig and hyperbolic functions to argument exclusion list ## ## Revision 1.3 2000/10/17 12:33:13 peterg ## Added mtt_mod to the zapped list ## ## Revision 1.2 2000/10/16 09:06:26 peterg ## Write out the system as a second columns as well ## ## Revision 1.1 2000/10/16 09:04:04 peterg ## Initial revision ## ## # Inform user #echo "Creating $1_sympar.txt" # Separation characters | > > > | | > | 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 38 39 40 41 42 43 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: strip args # Strips unwanted bits from a list of arguments # Label file to symbolic parameters conversion # Copyright (C) 2000 by Peter J. Gawthrop ## $Id$ ## ## $Log$ ## Revision 1.5 2001/06/13 14:50:13 gawthrop ## Operator ^ now ok in args in abg and/or lbl ## ## Revision 1.4 2001/05/08 15:18:10 gawthrop ## Added trig and hyperbolic functions to argument exclusion list ## ## Revision 1.3 2000/10/17 12:33:13 peterg ## Added mtt_mod to the zapped list ## ## Revision 1.2 2000/10/16 09:06:26 peterg ## Write out the system as a second columns as well ## ## Revision 1.1 2000/10/16 09:04:04 peterg ## Initial revision ## ## # Inform user #echo "Creating $1_sympar.txt" # Separation characters SEPS='^=*;+/()-' # Replace by , REPS='[,*]' # This is the main transformation using gawk tr $SEPS $REPS | \ awk ' function exact_match(name1, name2) { return ((match(name1,name2)>0)&&(length(name1)==length(name2))) } |
︙ | ︙ |