projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aa7349
)
scripts/release: fix license files paths
author
Mathieu Duponchelle
<mathieu@centricular.com>
Wed, 22 Sep 2021 23:20:22 +0000
(
01:20
+0200)
committer
Mathieu Duponchelle
<mathieu@centricular.com>
Wed, 22 Sep 2021 23:20:22 +0000
(
01:20
+0200)
The previous version only worked when the script was run from
the root source directory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/165>
scripts/release.py
patch
|
blob
|
history
diff --git
a/scripts/release.py
b/scripts/release.py
index
1cf977c
..
da04241
100644
(file)
--- a/
scripts/release.py
+++ b/
scripts/release.py
@@
-150,7
+150,7
@@
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))
+ tar.add(
os.path.join(HERE, '..', 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()