Call rsync with --delete

Our "the built web page" repository already accumulated some cruft. The
reason is that old files are newer deleted. This commit fixes that by
calling rsync with --delete so that unneeded files are removed. The only
exception is the .git directory which is protected via --exclude=.git.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-12-26 09:39:45 +01:00
parent c0273979de
commit b3dd4e7f64
1 changed files with 3 additions and 3 deletions

View File

@ -33,11 +33,11 @@ manpages:
done
build_for_travis: all
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
rsync -PaOvz --delete --exclude=.git --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
$${BUILD_WEB}
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s --delete src/build/doc/ \
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s src/build/doc/ \
$${BUILD_WEB}/doc/api
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s /usr/share/asciidoc/icons \
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s /usr/share/asciidoc/icons \
$${BUILD_WEB}/doc/manpages/icons
.PHONY: changelogs manpages