comparison libinterp/find-defun-files.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 39096b290a2f
children 1bca6c72d2b1
comparison
equal deleted inserted replaced
21275:85d8280c64f4 21276:3b4bb843ffcd
18 if [ -f "$arg" ]; then 18 if [ -f "$arg" ]; then
19 file="$arg" 19 file="$arg"
20 else 20 else
21 file="$srcdir/$arg" 21 file="$srcdir/$arg"
22 fi 22 fi
23 if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then 23 if [ -f "$file" ]; then
24 echo "$file" | $SED "s,\\$srcdir/,," | $SED 's/\.cc$/.df/; s/\.ll$/.df/; s/\.in.yy$/.df/'; 24 if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then
25 echo "$file" | $SED "s,\\$srcdir/,," | $SED 's/\.cc$/.df/; s/\.ll$/.df/; s/\.in.yy$/.df/'
26 fi
25 fi 27 fi
26 done 28 done