12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.10 2000/02/25 09:10:12 peterg
## Changed -e to -f in if [ -f "$crf" ]; then
## -- cuased probs on SUN
##
## Revision 1.9 2000/02/16 15:58:17 peterg
## Set level='' not $2
##
|
>
>
>
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.11 2000/08/01 07:34:33 peterg
## Replaced printf by echo
##
## Revision 1.10 2000/02/25 09:10:12 peterg
## Changed -e to -f in if [ -f "$crf" ]; then
## -- cuased probs on SUN
##
## Revision 1.9 2000/02/16 15:58:17 peterg
## Set level='' not $2
##
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
## list of the crs
crs=`cat $1_cr.txt`
for cr in $crs; do
crf=$cr'_cr.r'
if [ -f "$crf" ]; then
## printf "\045 (%s exists)\n" $crf >> $crfile
echo "% ($crf exists)\n" >> $crfile
else
## printf 'in "%s.cr";\n' $cr >> $crfile
echo 'in "'$cr.cr'";\n' >> $crfile
fi
done
## fi
echo 'END;' >> $crfile
fi
# Now invoke the standard error handling.
#mtt_error mtt_error.txt
|
|
|
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
## list of the crs
crs=`cat $1_cr.txt`
for cr in $crs; do
crf=$cr'_cr.r'
if [ -f "$crf" ]; then
## printf "\045 (%s exists)\n" $crf >> $crfile
echo "% ($crf exists)" >> $crfile
else
## printf 'in "%s.cr";\n' $cr >> $crfile
echo 'in "'$cr.cr'";' >> $crfile
fi
done
## fi
echo 'END;' >> $crfile
fi
# Now invoke the standard error handling.
#mtt_error mtt_error.txt
|