wayland/publish-doc
Bryce Harrington c19d5e1867 publish-doc: Add script for publishing docs to the website
Adapted from same-named script from libinput.
2015-05-27 15:34:20 -07:00

16 lines
349 B
Bash
Executable File

#!/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/