mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-13 03:46:34 +00:00
17 lines
No EOL
343 B
Python
17 lines
No EOL
343 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
import tarfile
|
|
|
|
if __name__ == "__main__":
|
|
files = sys.argv[1]
|
|
outname = sys.argv[2]
|
|
readme = sys.argv[3]
|
|
|
|
tar = tarfile.open(outname, 'w:xz')
|
|
os.chdir(files)
|
|
tar.add(os.path.curdir)
|
|
os.chdir(os.path.dirname(readme))
|
|
tar.add(os.path.basename(readme))
|
|
tar.close() |