]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/commitdiff
Build(Makefile): Add a target to fix permissions
authorOleg Broytman <phd@phdru.name>
Sun, 16 Jun 2024 15:21:09 +0000 (18:21 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 16 Jun 2024 15:21:09 +0000 (18:21 +0300)
Makefile

index f07aa0fd5e4ba0604644ad17859e2db1ecd54c31..7954baadd7749d2b5b3e88c253a909345aa1f580 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,3 +24,10 @@ venv:
                echo "The venv has been created in the $(VENVDIR) directory"; \
        fi
 
+.PHONY: perms
+perms:
+       chmod -R u=rwX,go=rX . && \
+       chmod -R go= .git .gitignore html_output/.gitignore \
+               devscripts parser/Makefile ChangeLog Makefile \
+               requirements.txt version && \
+       exec find .git/objects -type f -exec chmod a=r '{}' \+