commit 50366578c2a54a16add03c79a31584854aef85dc parent d31721074b1d4e8c0640843f54b2bee67cb3e398 Author: Yuval Langer <yuval.langer@gmail.com> Date: Sat, 17 Feb 2024 00:39:23 +0200 Update scripts. Diffstat:
M | Makefile | | | 9 | +++++---- |
A | update-server-info.sh | | | 3 | +++ |
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,15 +1,16 @@ repodir = ~/foo -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 +repositories = dotfiles elfeed-nitter emacs-nano-tts-minor-mode emacs-super-duper-yes-or-no guile-clipboard-speaker guile-rsv guix-kakafarm-channel kaka.farm learning-cc4e learning-sicp learning-the-little-schemer python-clipboard-speaker r7rs-small-texinfo rusty-diceware spacevroom spook stagit-repositories .PHONY: all all: $(repositories) index.html index.html: - guix shell stagit -- stagit-index $(addprefix $(repodir)/,$(repositories)) > $@ + stagit-index $(addprefix $(repodir)/,$(repositories)) > $@ $(repositories): - mkdir -p $@; cd $@; guix shell stagit -- stagit ~/foo/$@ + mkdir -p $@; cd $@; stagit -u https://kaka.farm/~stagit/ ~/foo/$@ upload: all 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/ + rsync -Prv --delete style.css favicon.png logo.png $(repositories) index.html stagit@kaka.farm:public_html/ + ssh git@kaka.farm 'sh -s' < update-server-info.sh diff --git a/update-server-info.sh b/update-server-info.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +find ~/public_html/* -maxdepth 0 -type d -exec sh -c 'echo {}; cd {}; git update-server-info; echo {}; ' \;