diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-02-02 13:20:11 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-02-04 21:40:23 +0000 |
commit | e99d9607f0242e371792bdff68575c1f4b671b4b (patch) | |
tree | f364f6ea3fccddcbdff0b969ec1ebcaa8ffc945d /contrib | |
parent | 3f722e7886ff46385033d9187e21f49c523083d4 (diff) | |
download | gcc-e99d9607f0242e371792bdff68575c1f4b671b4b.zip gcc-e99d9607f0242e371792bdff68575c1f4b671b4b.tar.gz gcc-e99d9607f0242e371792bdff68575c1f4b671b4b.tar.bz2 |
libstdc++: Add copyright and license text to new generated headers
contrib/ChangeLog:
* unicode/gen_libstdcxx_unicode_data.py: Add copyright and
license text to the output.
libstdc++-v3/ChangeLog:
* include/bits/text_encoding-data.h: Regenerate.
* include/bits/unicode-data.h: Regenerate.
* scripts/gen_text_encoding_data.py: Add copyright and license
text to the output.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/unicode/gen_libstdcxx_unicode_data.py | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/contrib/unicode/gen_libstdcxx_unicode_data.py b/contrib/unicode/gen_libstdcxx_unicode_data.py index f2f2f8a..2341a44 100755 --- a/contrib/unicode/gen_libstdcxx_unicode_data.py +++ b/contrib/unicode/gen_libstdcxx_unicode_data.py @@ -30,7 +30,35 @@ import sys import re import math -print("// Generated by contrib/unicode/gen_std_format_width.py, do not edit.\n") +print("""// Generated by contrib/unicode/gen_std_format_width.py, do not edit. + +// Copyright The GNU Toolchain Authors. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file bits/unicode-data.h + * This is an internal header file, included by other library headers. + * Do not attempt to use it directly. @headername{format} + */ +""") print("#ifndef _GLIBCXX_GET_UNICODE_DATA") print('# error "This is not a public header, do not include it directly"') print("#elif _GLIBCXX_GET_UNICODE_DATA != 150100") |