]> git.phdru.name Git - m_librarian.git/commitdiff
Use htdocs.path instead of absolute path
authorOleg Broytman <phd@phdru.name>
Fri, 28 Apr 2017 20:52:03 +0000 (23:52 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 28 Apr 2017 20:52:03 +0000 (23:52 +0300)
publish-docs [new file with mode: 0755]

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"