openbsd-webzine/publish.sh

19 lines
421 B
Bash
Raw Normal View History

2022-07-06 16:10:45 +00:00
#!/bin/sh
git switch main || exit
git pull -r || exit
2022-07-06 16:10:45 +00:00
if test -f /bsd # on OpenBSD
then
cd issues && make && cd ../
else
2022-07-19 14:35:52 +00:00
nix shell nixpkgs#gnumake nixpkgs#libxml2 -c /bin/sh -c "cd issues && make"
2022-07-06 16:10:45 +00:00
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/