0
0
Fork 0

use rsync to delete obsolete files

This deletes old and stale files, which are not included in the
generated content anymore. This keeps the target directory nice and
clean.
This commit is contained in:
Gibheer 2015-11-18 20:52:43 +01:00
parent 62424761f4
commit f9a0e79b04
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ clean:
-rm -r public/* -rm -r public/*
install: install:
cp -r public/ $(HTTPDIR)/ rsync --delete -r public/ $(HTTPDIR)/
find $(HTTPDIR) ! -path $(HTTPDIR) -type d -exec chmod $(DIRMODE) {} + find $(HTTPDIR) ! -path $(HTTPDIR) -type d -exec chmod $(DIRMODE) {} +
find $(HTTPDIR) ! -path $(HTTPDIR) -type f -exec chmod $(FILEMODE) {} + find $(HTTPDIR) ! -path $(HTTPDIR) -type f -exec chmod $(FILEMODE) {} +
chown -R $(OWNER):$(GROUP) $(HTTPDIR)/ chown -R $(OWNER):$(GROUP) $(HTTPDIR)/