File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- # $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.13 2000/11/22 01:47:47 petere Exp $
2
+ # $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.14 2000/12/11 19:00:33 tgl Exp $
3
3
4
4
me=` basename $0 `
5
5
: ${TMPDIR=/ tmp}
@@ -243,18 +243,21 @@ trap '
243
243
# ----------
244
244
245
245
cat /dev/null > $TMPFILE
246
- while read LINE
247
- do
248
- HOSTPAT=` expr " $LINE " : ' .*/\(.*\)=' `
249
- if [ ` expr " $host_platform :$compiler " : " $HOSTPAT " ` -ne 0 ]
250
- then
251
- # remove hostnamepattern from line so that there are no shell
252
- # wildcards in SUBSTLIST; else later 'for' could expand them!
253
- TESTNAME=` expr " $LINE " : ' \(.*\)/' `
254
- SUBST=` echo " $LINE " | sed ' s/^.*=//' `
255
- echo " $TESTNAME =$SUBST " >> $TMPFILE
256
- fi
257
- done < " $inputdir /resultmap"
246
+ if [ -f " $inputdir /resultmap" ]
247
+ then
248
+ while read LINE
249
+ do
250
+ HOSTPAT=` expr " $LINE " : ' .*/\(.*\)=' `
251
+ if [ ` expr " $host_platform :$compiler " : " $HOSTPAT " ` -ne 0 ]
252
+ then
253
+ # remove hostnamepattern from line so that there are no shell
254
+ # wildcards in SUBSTLIST; else later 'for' could expand them!
255
+ TESTNAME=` expr " $LINE " : ' \(.*\)/' `
256
+ SUBST=` echo " $LINE " | sed ' s/^.*=//' `
257
+ echo " $TESTNAME =$SUBST " >> $TMPFILE
258
+ fi
259
+ done < " $inputdir /resultmap"
260
+ fi
258
261
SUBSTLIST=` cat $TMPFILE `
259
262
rm -f $TMPFILE
260
263
You can’t perform that action at this time.
0 commit comments