From 27c6383d887559b8dfb9cad2d40273927e46224f Mon Sep 17 00:00:00 2001 From: Sascha Paunovic Date: Sat, 8 Sep 2018 09:07:57 +0200 Subject: [PATCH] improve Makefile --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ed2383..c5acb73 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ WEBDIR=/var/www/htdocs/ publish: - doas rsync -av --exclude-from exclude-file ./ $(WEBDIR) + @if [ "$$(hostname)" = "azarus.ch" ]; then\ + doas rsync -av --exclude-from exclude-file ./ $(WEBDIR);\ + else\ + rsync -av --exclude-from exclude-file ./ vps:/$(WEBDIR);\ + fi newpost: - cp post.tmpl posts/$$(date +%F)-title.html + @printf "Enter post title filename: " + @read TITLE; cp post.tmpl "posts/$$(date +%F)-$$TITLE.html" -- 2.11.4.GIT