annotate build-aux/find-defun-files.sh @ 22799:592fa741e0aa

add missing copyright notices (bug #49624) * build-aux/OctJavaQry.java, build-aux/changelog.tmpl, build-aux/find-defun-files.sh, doc/doxyhtml/Doxyfile.in, doc/interpreter/config-images.sh, doc/interpreter/doccheck/add_to_aspell_dict, doc/interpreter/doccheck/mk_undocumented_list, doc/interpreter/doccheck/spellcheck, doc/interpreter/images.awk, doc/interpreter/mkcontrib.awk, doc/interpreter/munge-texi.pl, libinterp/build-env-features.sh, libinterp/dldfcn/config-module.awk, libinterp/dldfcn/config-module.sh, liboctave/operators/config-ops.sh, liboctave/util/singleton-cleanup.h, test/bug-31371.tst, test/bug-35448/bug-35448.tst, test/bug-36025/bug-36025.tst, test/bug-38236/bug-38236.tst, test/bug-38565.tst, test/bug-38576.tst, test/bug-38691/bug-38691.tst, test/bug-44940/bug-44940.tst, test/bug-46330.tst, test/build-conv-tests.sh, test/class-concat/class-concat.tst, test/command.tst: Add copyright notices with copyright owner and dates based on info from hg revision history.
author John W. Eaton <jwe@octave.org>
date Sun, 20 Nov 2016 11:01:42 -0500
parents 6119019d42f6
children debe0c7dcefc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
22799
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
3 ## Copyright (C) 2009-2016 John W. Eaton
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
4 ##
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
5 ## This file is part of Octave.
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
6 ##
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
7 ## Octave is free software; you can redistribute it and/or modify it
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
8 ## under the terms of the GNU General Public License as published by
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
9 ## the Free Software Foundation; either version 3 of the License, or
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
10 ## (at your option) any later version.
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
11 ##
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
12 ## Octave is distributed in the hope that it will be useful, but
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
15 ## GNU General Public License for more details.
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
16 ##
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
17 ## You should have received a copy of the GNU General Public License
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
18 ## along with Octave; see the file COPYING. If not, see
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
19 ## <http://www.gnu.org/licenses/>.
592fa741e0aa add missing copyright notices (bug #49624)
John W. Eaton <jwe@octave.org>
parents: 22095
diff changeset
20
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 set -e
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21276
diff changeset
22
10016
3275dda012f7 find-defun-files.sh: use sed and egrep as found by configure
Rob Mahurin <octave@tertiarysource.net>
parents: 9906
diff changeset
23 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
24 EGREP=${EGREP:-egrep}
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 # 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
27 # 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
28 # empty elements in alternation patterns.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
21966
112b20240c87 move docstrings in C++ files out of C strings and into comments
John W. Eaton <jwe@octave.org>
parents: 21277
diff changeset
30 DEFUN_PATTERN="^[ \t]*DEF(CONSTFUN|UN|UN_DLD|UNX|UNX_DLD)[ \t]*\\("
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 srcdir="$1"
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21276
diff changeset
33 if [ "$1" ]; then
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21276
diff changeset
34 shift
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21276
diff changeset
35 fi
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 for arg
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 do
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
39 if [ -f "$arg" ]; then
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
40 file="$arg"
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
41 else
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
42 file="$srcdir/$arg"
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 fi
21276
3b4bb843ffcd maint: Ensure source files exist when searching for patterns during build
Mike Miller <mtmiller@octave.org>
parents: 16174
diff changeset
44 if [ -f "$file" ]; then
3b4bb843ffcd maint: Ensure source files exist when searching for patterns during build
Mike Miller <mtmiller@octave.org>
parents: 16174
diff changeset
45 if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then
21966
112b20240c87 move docstrings in C++ files out of C strings and into comments
John W. Eaton <jwe@octave.org>
parents: 21277
diff changeset
46 echo "$file" | $SED "s,\\$srcdir/,,"
21276
3b4bb843ffcd maint: Ensure source files exist when searching for patterns during build
Mike Miller <mtmiller@octave.org>
parents: 16174
diff changeset
47 fi
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 fi
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 done