SWITCH TO MIT LICENSE

This commit is contained in:
2024-07-05 20:02:38 +02:00
parent d620c6f5b2
commit 1c4917fab4
74 changed files with 36 additions and 1985 deletions

View File

@@ -5,8 +5,6 @@ from pathlib import Path
# Simple Script to generate/update Assets
license_text = "/**\n* This file is part of RenderD7\n* Copyright (C) 2021-2024 NPI-D7, tobid7\n*\n* This program is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program. If not, see <http://www.gnu.org/licenses/>.\n*/\n\n"
def file2array(path, custom_incluse_path):
print(path)
cip = len(custom_incluse_path)
@@ -18,7 +16,6 @@ def file2array(path, custom_incluse_path):
buf = filei.read()
filei.close()
fs = open(name + '.cpp', 'w')
fs.write(license_text)
fs.write("// THIS FILE WAS GENERATED BY generate_assets.py!!!\n\n")
fs.write('#include <'+ sip + name + '.hpp>\n\n')
fs.write('// clang-format off\n')
@@ -30,7 +27,6 @@ def file2array(path, custom_incluse_path):
fs.write('size_t ' + name + '_size = ' + hex(len(buf)) + ';')
fs.close()
fh = open(name + '.hpp', 'w')
fh.write(license_text)
fh.write("// THIS FILE WAS GENERATED BY generate_assets.py!!!\n\n")
fh.write('#pragma once\n\n')
fh.write('#include <cstddef>\n\n')