annotate libinterp/operators/mk-ops.sh @ 27923:bd51beb6205e

update formatting of copyright notices * Use <https://octave.org/copyright/> instead of <https://octave.org/COPYRIGHT.html/>. * For consistency with other comments in the Octave sources, use C++-style comments for copyright blocks in C and C++ files. * Use delimiters above and below copyright blocks that are appropriate for the language used in the file. * Eliminate extra spacing inside copyright blocks. * lex.ll (looks_like_copyright): Also allow newlines and carriage returns before the word "Copyright". * scripts/mk-doc.pl (gethelp): Also skip empty comment lines. * bp-table.cc, type.m: Adjust tests.
author John W. Eaton <jwe@octave.org>
date Wed, 08 Jan 2020 11:59:41 -0500
parents 1891570abac8
children bbbe4dcc7200
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6218
c1b66b74937d [project @ 2006-12-27 17:43:50 by jwe]
jwe
parents: 4299
diff changeset
1 #! /bin/sh
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6218
diff changeset
2 #
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
3 ########################################################################
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
4 #
27919
1891570abac8 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27918
diff changeset
5 # Copyright (C) 1997-2020 The Octave Project Developers
27918
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
6 #
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
7 # See the file COPYRIGHT.md in the top-level directory of this
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
8 # distribution or <https://octave.org/copyright/>.
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6218
diff changeset
9 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6218
diff changeset
10 # This file is part of Octave.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
11 #
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23709
diff changeset
12 # Octave is free software: you can redistribute it and/or modify it
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
13 # under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23709
diff changeset
14 # the Free Software Foundation, either version 3 of the License, or
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
15 # (at your option) any later version.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
16 #
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
17 # Octave is distributed in the hope that it will be useful, but
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
20 # GNU General Public License for more details.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
21 #
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6218
diff changeset
22 # You should have received a copy of the GNU General Public License
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6218
diff changeset
23 # along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23709
diff changeset
24 # <https://www.gnu.org/licenses/>.
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
25 #
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
26 ########################################################################
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
27
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 20327
diff changeset
28 SED=${SED:-sed}
4299
02fcb550f20c [project @ 2003-01-16 20:15:14 by jwe]
jwe
parents: 3225
diff changeset
29
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
30 cat << \EOF
23709
3b68aeeabc40 rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents: 23220
diff changeset
31 // DO NOT EDIT! Generated automatically by mk-ops.sh.
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
32
21724
aba2e6293dd8 use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents: 21301
diff changeset
33 #if defined (HAVE_CONFIG_H)
22003
2d3972b802ff use consistent style for including config.h in source files
John W. Eaton <jwe@octave.org>
parents: 21724
diff changeset
34 # include "config.h"
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
35 #endif
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
36
24540
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
37 #include "ov-typeinfo.h"
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
38
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
39 extern void install_base_type_conversions (octave::type_info&);
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
40
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
41 EOF
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
42
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
43 for file in "$@"; do
20327
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
44 f=`echo $file | $SED 's,^\./,,; s%^libinterp/operators/op-%%; s%\.cc%%; s%-%_%g'`
24540
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
45 echo "extern void install_${f}_ops (octave::type_info&);"
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
46 done
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
47
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
48 cat << \EOF
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
49
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
50 void
24540
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
51 install_ops (octave::type_info& ti)
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
52 {
24540
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
53 install_base_type_conversions (ti);
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
54
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
55 EOF
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
56
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
57 for file in "$@"; do
20327
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
58 f=`echo $file | $SED 's,^\./,,; s%^libinterp/operators/op-%%; s%\.cc%%; s%-%_%g'`
24540
46440078d73b don't use singleton for octave_value_typeinfo
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
59 echo " install_${f}_ops (ti);"
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
60 done
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
61
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
62 cat << \EOF
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
63 }
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
64 EOF
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
65
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents:
diff changeset
66 exit 0