mcornick.com source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.9 KiB

#!/bin/bash -e
export TZ=UTC
deploy() {
printf "%s... " "$1"
rm -rf public
cd content
for show in show jazz; do
cd $show
for en in episode*.en.md; do
for lang in es fr; do
target=${en//en/$lang}
ln -sf "$en" "$target"
done
done
cd ..
done
cd ..
hugo --config "config-$3.yaml" --quiet --minify --baseURL "$1"
case "$4" in
rsync)
rsync --ipv4 -a public/ "$2" >/dev/null 2>&1
;;
rclone)
rclone copy public/ "$2"
;;
*)
true
;;
esac
printf "done\n"
}
umask 0022
deploy https://markcornick.com/ fastmail: en rclone
deploy https://mcornick.is/ mcornick@mcornick.is:/var/www/mcornick.is en rsync
deploy https://aussies.space/~mcornick/ mcornick@aussies.space:/home/mcornick/public_html en rsync
deploy https://bsd.tilde.team/~mcornick/ mcornick@bsd.tilde.team:/home/mcornick/public_html en rsync
deploy https://ctrl-c.club/~mcornick/ mcornick@ctrl-c.club:/home/mcornick/public_html en rsync
deploy https://envs.net/~mcornick/ mcornick@envs.net:/home/mcornick/public_html en rsync
deploy https://mcornick.tilde.institute/ mcornick@tilde.institute:/home/mcornick/public_html en rsync
deploy https://texto-plano.xyz/~mcornick/ mcornick@texto-plano.xyz:/home/mcornick/public_html es rsync
deploy https://thunix.net/~mcornick/ mcornick@thunix.net:/home/mcornick/public_html en rsync
deploy https://tilde.club/~mcornick/ mcornick@tilde.club:/home/mcornick/public_html en rsync
deploy https://tilde.team/~mcornick/ mcornick@tilde.team:/home/mcornick/public_html en rsync
deploy https://mcornick.sdf.org/ mcornick@ma.sdf.org:/meta/m/mcornick/html en rsync
ssh mcornick@ma.sdf.org mkhomepg -p >/dev/null 2>&1
deploy https://mcornick.sdf.org/ mcornick@sdf.org:/sdf/arpa/gm/m/mcornick/html en rsync
deploy https://mcornick.com/ mcornick@sdf.org:/sdf/arpa/gm/m/mcornick/html/mcornick.com en rsync
ssh mcornick@sdf.org mkhomepg -p >/dev/null 2>&1