comparison build-aux/find-files-with-tests.sh @ 21276:3b4bb843ffcd

maint: Ensure source files exist when searching for patterns during build * find-files-with-tests.sh: Test for file existence to avoid spurious warnings on not-yet-generated sources. * find-defun-files.sh: Likewise.
author Mike Miller <mtmiller@octave.org>
date Tue, 16 Feb 2016 17:57:07 -0800
parents 43e6415393ff
children 1bca6c72d2b1
comparison
equal deleted inserted replaced
21275:85d8280c64f4 21276:3b4bb843ffcd
12 if [ -f "$arg" ]; then 12 if [ -f "$arg" ]; then
13 file="$arg" 13 file="$arg"
14 else 14 else
15 file="$srcdir/$arg" 15 file="$srcdir/$arg"
16 fi 16 fi
17 if [ "`$GREP -l '^%!' $file`" ]; then 17 if [ -f "$file" ]; then
18 echo "$file" | $SED "s,\\$srcdir/,,"; 18 if [ "`$GREP -l '^%!' $file`" ]; then
19 echo "$file" | $SED "s,\\$srcdir/,,"
20 fi
19 fi 21 fi
20 done 22 done