also add new post to index
[azarus.ch.git] / Makefile
blobc5acb7311e57e2c408020467e6fe1d9c5de790c5
1 WEBDIR=/var/www/htdocs/
3 publish:
4 @if [ "$$(hostname)" = "azarus.ch" ]; then\
5 doas rsync -av --exclude-from exclude-file ./ $(WEBDIR);\
6 else\
7 rsync -av --exclude-from exclude-file ./ vps:/$(WEBDIR);\
8 fi
10 newpost:
11 @printf "Enter post title filename: "
12 @read TITLE; cp post.tmpl "posts/$$(date +%F)-$$TITLE.html"