Mercurial > hg > octave-nkf
annotate libinterp/find-defun-files.sh @ 20706:1339ad3c9faa stable
Fix typo in str2func docstring.
* ov-fcn-handle.cc (Ffunc2str): Fix typo where 'a' should be '@'.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 22 Sep 2015 02:06:17 -0700 |
parents | 39096b290a2f |
children |
rev | line source |
---|---|
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 #! /bin/sh |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 set -e |
10016
3275dda012f7
find-defun-files.sh: use sed and egrep as found by configure
Rob Mahurin <octave@tertiarysource.net>
parents:
9906
diff
changeset
|
4 SED=${SED:-sed} |
3275dda012f7
find-defun-files.sh: use sed and egrep as found by configure
Rob Mahurin <octave@tertiarysource.net>
parents:
9906
diff
changeset
|
5 EGREP=${EGREP:-egrep} |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 # Some stupid egreps don't like empty elements in alternation patterns, |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 # so we have to repeat ourselves because some stupid egreps don't like |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 # empty elements in alternation patterns. |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 DEFUN_PATTERN="^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT)[ \t]*\\(" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 srcdir="$1" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 shift |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 for arg |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 do |
9906 | 18 if [ -f "$arg" ]; then |
19 file="$arg" | |
20 else | |
21 file="$srcdir/$arg" | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 fi |
10016
3275dda012f7
find-defun-files.sh: use sed and egrep as found by configure
Rob Mahurin <octave@tertiarysource.net>
parents:
9906
diff
changeset
|
23 if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then |
16174
39096b290a2f
check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
24 echo "$file" | $SED "s,\\$srcdir/,," | $SED 's/\.cc$/.df/; s/\.ll$/.df/; s/\.in.yy$/.df/'; |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 fi |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 done |