Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alba Mendez
gst-docs
Commits
dd1a0faa
Commit
dd1a0faa
authored
Aug 15, 2018
by
Thibault Saunier
🌵
Browse files
Add a 'release' target to generate a ready to install tarball
parent
ad0779c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
dd1a0faa
...
...
@@ -70,3 +70,17 @@ gstreamer_doc = hotdoc.generate_doc('GStreamer',
build_always_stale: true,
edit_on_github_repository: 'https://gitlab.freedesktop.org/gstreamer/gst-docs/',
)
cdata = configuration_data()
cdata.set('GST_API_VERSION', apiversion)
readme = configure_file(input: 'scripts/RELEASE_README.md',
output: 'README.md',
configuration : cdata)
run_target('release',
command: [find_program('scripts/release.py'),
gstreamer_doc.full_path(),
'GStreamer-doc-@0@.tar.xz'.format(meson.project_version()),
join_paths(meson.current_build_dir(), 'README.md')],
depends: [gstreamer_doc]
)
scripts/RELEASE_README.md
0 → 100644
View file @
dd1a0faa
# GStreamer documentation
This is the released version of the
[
GStreamer documentation
](
https://cgit.freedesktop.org/gstreamer/gst-docs
)
, it contains
two folders:
*
html/: The static website documentation which can be hosted anywhere and
read in any web browser.
*
devhelp/: The documentation to be browsed with
[
devhelp
](
https://wiki.gnome.org/Apps/Devhelp
)
.
The content of that folder should be installed in
`/usr/share/gtk-doc/html/GStreamer-@GST_API_VERSION@/`
by documentation packages.
\ No newline at end of file
scripts/release.py
0 → 100644
View file @
dd1a0faa
#!/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
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment