mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
Add a script to import the GStreamer documentation inside the fdo server
This commit is contained in:
parent
b48405a455
commit
5321d73fa9
1 changed files with 36 additions and 0 deletions
36
gitlab/freedesktop_doc_importer.sh
Executable file
36
gitlab/freedesktop_doc_importer.sh
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/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 ""
|
Loading…
Reference in a new issue