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
|
|
|
|
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
|