0
0
派生 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.
这个提交包含在:
Gibheer 2015-11-18 20:52:43 +01:00
父节点 62424761f4
当前提交 f9a0e79b04
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

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