From 1d2b980c74e24046885bff7b45f453a057552d77 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 17 Nov 2019 18:51:39 +0100 Subject: [PATCH] [doc] fix permissions before publishing --- docs/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index 89a98ea..a62df24 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -11,8 +11,12 @@ DESTINATION=root@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticc .PHONY: all build clean -publish: build +publish: build permissions rsync -av $(BUILDDIR) $(DESTINATION) +permissions: build + find $(BUILDDIR) -type f -exec chmod 0644 {} \; + find $(BUILDDIR) -type d -exec chmod 0755 {} \; + build: $(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)"