From: Oleg Broytman Date: Fri, 28 Apr 2017 20:52:03 +0000 (+0300) Subject: Use htdocs.path instead of absolute path X-Git-Tag: 0.0.16~24 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=32e440465a91dce054403325a59291f455683943;p=m_librarian.git Use htdocs.path instead of absolute path --- diff --git a/publish-docs b/publish-docs new file mode 100755 index 0000000..ba4bdef --- /dev/null +++ b/publish-docs @@ -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"