From 90eade770f22ac81478714937bf16cc1ceebdb44 Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Tue, 14 Feb 2023 22:52:30 +0000 Subject: [PATCH] Modified --- cluster-web-to-other.ksh | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/cluster-web-to-other.ksh b/cluster-web-to-other.ksh index 2f30c1e..f310ccb 100755 --- a/cluster-web-to-other.ksh +++ b/cluster-web-to-other.ksh @@ -1,33 +1,59 @@ #/bin/ksh +# # Cluster +# + +# Download the websites index.html file wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org +# Download the websites 02.html file + wget -O /sdf/arpa/ns/s/scm/02.html https://scm.sdf.org/posts/2023/02.html +# Convert the index.html file to an index text file + html2text -o /sdf/arpa/ns/s/scm/index -ascii -style pretty /sdf/arpa/ns/s/scm/index.html +# Convert the 02.html file to a 02 text file + html2text -o /sdf/arpa/ns/s/scm/02 -ascii -style pretty /sdf/arpa/ns/s/scm/02.html +# Write the .plan text file from the index text file + cat /sdf/arpa/ns/s/scm/index > .plan +# Write the index text file to the root of Gopher + cp /sdf/arpa/ns/s/scm/index /sdf/arpa/ns/s/scm/gopher +# Write the 02 text file to the posts Gopher location + cp /sdf/arpa/ns/s/scm/02 /sdf/arpa/ns/s/scm/gopher/posts/2023 -mkgopher -p - +# # Meta Array +# + +# Remove all control chracters from the index text file and write it to the index.ma text file cat /sdf/arpa/ns/s/scm/index | col -b -x > /sdf/arpa/ns/s/scm/index.ma +# Remove all the control chracters from the 02 text file and write it to the 02.ma text file + cat /sdf/arpa/ns/s/scm/02 | col -b -x > /sdf/arpa/ns/s/scm/02.ma +# Write the index.ma text file to the .plan text file + scp /sdf/arpa/ns/s/scm/index.ma scm@ma.sdf.org:/meta/s/scm/.plan +# Write the index.ma text file to the index.gmi text file to the root of Gemini + scp /sdf/arpa/ns/s/scm/index.ma scm@ma.sdf.org:/meta/gemini/scm/index.gmi +# Write the 02.ma text file to the 02.gmi text file to the posts location on Gemini + scp /sdf/arpa/ns/s/scm/02.ma scm@ma.sdf.org:/meta/gemini/scm/posts/2023/02.gmi exit 0