Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tim-Philipp Müller
gst-ci
Commits
5321d73f
Commit
5321d73f
authored
Nov 25, 2018
by
Thibault Saunier
🌵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a script to import the GStreamer documentation inside the fdo server
parent
b48405a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
gitlab/freedesktop_doc_importer.sh
gitlab/freedesktop_doc_importer.sh
+36
-0
No files found.
gitlab/freedesktop_doc_importer.sh
0 → 100755
View file @
5321d73f
#!/bin/sh
set
-e
BRANCH
=
master
NAMESPACE
=
gstreamer
WORK_DIR
=
`
mktemp
-d
-p
"
$DIR
"
`
# deletes the temp directory
function
cleanup
{
rm
-rf
"
$WORK_DIR
"
echo
"Deleted temp working directory
$WORK_DIR
"
}
# register the cleanup function to be called on the EXIT signal
trap
cleanup EXIT
echo
""
echo
"============================================================================================================================"
echo
"Updating documentation from: https://gitlab.freedesktop.org/
$NAMESPACE
/gst-docs/-/jobs/artifacts/
$BRANCH
/download?job=deploy"
date
cd
$WORK_DIR
wget https://gitlab.freedesktop.org/
$NAMESPACE
/gst-docs/-/jobs/artifacts/
$BRANCH
/download?job
=
deploy
-O
gstdocs.zip
unzip gstdocs.zip
DOC_BASE
=
"/srv/gstreamer.freedesktop.org/public_html/documentation"
rsync
-rvaz
--links
--delete
documentation/
$DOC_BASE
||
/bin/true
chmod
-R
g+w
$DOC_BASE
;
chgrp
-R
gstreamer
$DOC_BASE
echo
"Done updating documentation"
echo
""
\ 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