From 46a827cdd1da4a6ffef355447d3603326b88ee96 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 12 Apr 2023 08:47:26 +0300 Subject: [PATCH] Improve publishing process --- Makefile | 5 ++++- publish.el | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4634536..8fb09ba 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ .PHONY: local remote sweep dotfiles +update: + emacs -Q --batch -l publish.el -f esy/publish-update + remote: local - emacs -Q --batch -l publish.el -f esy/publish-to-remote + rsync -vrz html/ root@direct.eshelyaron.com:/var/www/html local: sweep dotfiles emacs -Q --batch -l publish.el -f esy/publish diff --git a/publish.el b/publish.el index 45151be..e194fce 100644 --- a/publish.el +++ b/publish.el @@ -272,6 +272,7 @@ " %a")))))))) (org-publish "all" (not modified-only)))) +(defun esy/publish-update () (esy/publish t)) (provide 'publish) ;;; publish.el ends here -- 2.39.2