]> git.phdru.name Git - m_librarian.git/blobdiff - publish-docs
Use htdocs.path instead of absolute path
[m_librarian.git] / publish-docs
diff --git a/publish-docs b/publish-docs
new file mode 100755 (executable)
index 0000000..ba4bdef
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+web="`git config --get --path htdocs.path`" &&
+
+cd "`dirname \"$0\"`"/docs/_build/html &&
+rsync -ahP --del * --exclude=objects.inv "$web" &&
+
+cd ../../../docs-ru/_build/html &&
+rsync -ahP --del --exclude=objects.inv * "$web"/ru &&
+
+exec chmod -R u=rwX,go=rX "$web"