Fix permissions after make.

This commit is contained in:
Michael Spang 2007-06-30 19:06:12 -04:00
parent 782fc815fd
commit 4c9564a477
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ SUBDIRS = about events docs office news users clubs media
# the following two rules are there so cow gets built first.
cow-first: noroot events.ics recurse-cow books.xml members.xml menu.xml all
find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true
find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true
find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true
noroot:
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi