mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-28 05:40:14 -04:00
publish-doc: Add script for publishing docs to the website
Adapted from same-named script from libinput.
This commit is contained in:
parent
6ffd998a98
commit
c19d5e1867
1 changed files with 15 additions and 0 deletions
15
publish-doc
Executable file
15
publish-doc
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
[ -e doc ] || (echo "Run this from the project root" && exit 1)
|
||||
|
||||
make
|
||||
|
||||
DOC_HTML=./doc/publican/Wayland/en-US/html/
|
||||
|
||||
[ -e "${DOC_HTML}" ] || (echo "HTML documentation failed to build at ${DOC_HTML}" && exit 1)
|
||||
|
||||
chmod -R g+x ${DOC_HTML}
|
||||
|
||||
rsync --delete -avz ${DOC_HTML} freedesktop.org:/srv/wayland.freedesktop.org/www/docs/html/
|
||||
Loading…
Add table
Add a link
Reference in a new issue