commit eeecb02bcd80c1d29f5f8e55ed2a89a28931d973 parent 26d6a46be01d78c614b463e9b031650caef62647 Author: Yuval Langer <yuval.langer@gmail.com> Date: Tue, 14 Nov 2023 23:18:42 +0200 Run rsync only once and update repositories list. Diffstat:
M | Makefile | | | 9 | +++------ |
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,8 +1,5 @@ repodir = ~/foo -repositories = cc4e dotfiles elfeed-nitter emacs-nano-tts-minor-mode \ -guile-clipboard-speaker kaka.farm learning-sicp \ -python-clipboard-speaker rusty-diceware spacevroom spook \ -super-duper-yes-or-no +repositories = dotfiles elfeed-nitter emacs-nano-tts-minor-mode guile-clipboard-speaker kaka.farm learning-cc4e learning-sicp learning-the-little-schemer python-clipboard-speaker rusty-diceware spacevroom spook stagit-repositories super-duper-yes-or-no .PHONY: all all: $(repositories) index.html @@ -14,5 +11,5 @@ $(repositories): mkdir -p $@; cd $@; guix shell stagit -- stagit ~/foo/$@ upload: all - rsync -Prv style.css favicon.png logo.png $(repositories) index.html stagit-at-kaka.farm:/var/www/kaka.farm/stagit/ & - for repository in $(repositories); do rsync -Prv logo.png favicon.png style.css stagit-at-kaka.farm:/var/www/kaka.farm/stagit/"$$repository" & done + for repository in $(repositories); do cp logo.png favicon.png style.css $$repository/ ; done + rsync -Prv style.css favicon.png logo.png $(repositories) index.html stagit-at-kaka.farm:/var/www/kaka.farm/stagit/