Mercurial > octave-nkf
comparison src/find-defun-files.sh @ 13791:4cf7356a99d0
find-defun-files.sh: allow sed command to work with OpenBSD sed
* find-defun-files.sh: Avoid extended regexp in sed command.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 02 Nov 2011 12:40:29 -0400 |
parents | 3275dda012f7 |
children | e753177cde93 |
comparison
equal
deleted
inserted
replaced
13790:fa94d6a93d45 | 13791:4cf7356a99d0 |
---|---|
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 [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then |
24 echo "$file" | $SED 's,.*/,,; s/\.\(cc\|yy\|ll\)$/.df/'; | 24 echo "$file" | $SED 's,.*/,,; s/\.cc$/.df/; s/\.ll$/.df/; s/\.yy$/.df/'; |
25 fi | 25 fi |
26 done | 26 done |