Include LICENSE.XXX files in the tarball

This commit is contained in:
Sebastian Dröge 2020-09-03 23:58:31 +03:00
parent 460cf29289
commit bf4187016a

View file

@ -149,6 +149,8 @@ if __name__ == "__main__":
tar = tarfile.open(outname, 'w:xz')
tar.add(files, release_name, filter=exclude_filter)
for license in ['LICENSE.BSD', 'LICENSE.CC-BY-SA-4.0', 'LICENSE.LGPL-2.1', 'LICENSE.MIT', 'LICENSE.OPL']:
tar.add(license, os.path.join(release_name, license))
os.chdir(os.path.dirname(readme))
tar.add(os.path.basename(readme), os.path.join(release_name, os.path.basename(readme)))
tar.close()