Mercurial > hg > octave-jordi
view src/find-defun-files.sh @ 9825:7483fe200fab
narrow complex values with negative zero imaginary parts
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 13 Nov 2009 12:34:46 +0100 |
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