From 0e516877457725013df20eaae0161be263419927 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 16 Jun 2017 00:27:27 +0200 Subject: Cleaning target for the Makefile Fixes #7 --- Makefile | 3 +++ bin/deploy.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 35466c5..c3b51b0 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,6 @@ $(tmpfiles): deploy: bin/deploy.sh + +clean: + find http -type f -name \*.html -delete diff --git a/bin/deploy.sh b/bin/deploy.sh index 39812e4..9d51b68 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -2,7 +2,7 @@ DEPLOYPATH=`cat config/deploy-path` if [ -s config/deploy-pass ] then - sshpass -p `cat config/deploy-pass` rsync -urpP http/ $DEPLOYPATH + sshpass -p `cat config/deploy-pass` rsync -urpP --delete http/ $DEPLOYPATH else - rsync -urpP http/ $DEPLOYPATH + rsync -urpP --delete http/ $DEPLOYPATH fi -- cgit v1.2.3