tools: add a script to push the doxygen output to freedesktop.org
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 Jun 2014 05:42:49 +0000 (15:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Jun 2014 22:28:07 +0000 (08:28 +1000)
Intentionally not added to EXTRA_DIST, if you're not running libinput from git
you're not supposed to push documentation.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/publish-doc [new file with mode: 0755]

diff --git a/tools/publish-doc b/tools/publish-doc
new file mode 100755 (executable)
index 0000000..1e07e04
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+[ -e doc ] || echo "Run this from the project root"  && exit 1
+
+make
+
+[ -e doc/html ] || echo "HTML documentation failed to build" && exit 1
+
+rsync --delete -avz doc/html/ freedesktop.org:/srv/wayland.freedesktop.org/www/libinput/doc/latest