From 4271b076aa810d636025080d9288fa5910569dd9 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Wed, 6 Jul 2022 18:10:45 +0200 Subject: [PATCH] add a script to publish the webzine --- publish.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..0c5e798 --- /dev/null +++ b/publish.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if test -f /bsd # on OpenBSD +then + cd issues && make && cd ../ +else + nix-shell -p gnumake libxml2 --run "cd issues && make" +fi +rclone sync -v --size-only \ + --sftp-set-modtime=false \ + --sftp-disable-hashcheck=true \ + --sftp-disable-concurrent-writes=true \ + --sftp-disable-concurrent-reads=true \ + public/ \ + webzine:webzine.puffy.cafe/