Mercurial > hg > octave-nkf
view src/find-defun-files.sh @ 9797:f569f46a1c34
update ferror doc string, take 2
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Nov 2009 17:55:19 -0500 |
parents | 0d4613a736e9 |
children | 8d20fb66a0dc |
line wrap: on
line source
#! /bin/sh set -e # Some stupid egreps don't like empty elements in alternation patterns, # so we have to repeat ourselves because some stupid egreps don't like # empty elements in alternation patterns. DEFUN_PATTERN="^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT)[ \t]*\\(" srcdir="$1" shift for arg do file=`echo "$arg" | sed 's/\.ll$/.cc/; s/\.yy$/.cc/'`; if [ ! -f $file ]; then file="$srcdir/$file" fi if [ "`egrep -l "$DEFUN_PATTERN" $file`" ]; then echo "$file" | sed 's/\.cc$/.df/'; fi done