From 32e440465a91dce054403325a59291f455683943 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 28 Apr 2017 23:52:03 +0300 Subject: [PATCH] Use htdocs.path instead of absolute path --- publish-docs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 publish-docs 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" -- 2.39.2