Include LICENSE.XXX files in the tarball
authorSebastian Dröge <sebastian@centricular.com>
Thu, 3 Sep 2020 20:58:31 +0000 (23:58 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 3 Sep 2020 20:58:31 +0000 (23:58 +0300)
scripts/release.py

index a9d9c65..1cf977c 100644 (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()