sdf-scripts/ma-web-to-other.sh

27 lines
889 B
Bash
Executable File

#!/bin/bash
sh /meta/s/scm/sdf/push-website.sh
mkhomepg -p
ssh scm@tty.sdf.org sh /sdf/arpa/ns/s/scm/sdf/cluster-web-to-other.sh
sed -i '12i Posts' /meta/gemini/scm/index.gmi
sed -i '13i \ \' /meta/gemini/scm/index.gmi
sed -i '14i => gemini://gem.sdf.org/scm/posts/2023/02.gmi 2023' /meta/gemini/scm/index.gmi
sed -i '15i \ \' /meta/gemini/scm/index.gmi
sed -i '19i Gopher e.g. gopher' /meta/gemini/scm/index.gmi
sed -i '20i => gopher://sdf.org:70/1/users/scm/ gopher://sdf.org:70/1/users/scm/' /meta/gemini/scm/index.gmi
sed -i '21i World Wide Web e.g. lynx' /meta/gemini/scm/index.gmi
sed -i '22i => https://scm.sdf.org/ https://scm.sdf.org/' /meta/gemini/scm/index.gmi
sed -i '23i Source e.g. git clone' /meta/gemini/scm/index.gmi
sed -i '24i => https://git.sdf.org/scm/web.git https://git.sdf.org/scm/web.git' /meta/gemini/scm/index.gmi
chmod -R 755 /meta/gemini/scm
exit 0