diff --git a/cluster-to-other.sh b/cluster-to-other.sh index 5f4bf6c..45efb3b 100755 --- a/cluster-to-other.sh +++ b/cluster-to-other.sh @@ -22,7 +22,6 @@ month=$(date '+%m') let prevmonth=$month-1 year=$(date '+%Y') -# Change this to the first letter of your login name letter="s" finger() @@ -80,6 +79,9 @@ finger() gopher() { + # If the year has changed, and a new year directory does not already + # exist, create it + # Download the index.html and $month.html files sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gopher-prep sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gopher-prep @@ -115,6 +117,9 @@ gopher() gemini() { + # If the year has changed, and a new year directory does not already + # exist, create it + # Download the index.html and $month.html files sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/index.html /sdf/arpa/ns/$letter/$USER/gemini sftp $USER@ma.sdf.org:/meta/$letter/$USER/html/posts/$year/$month.html /sdf/arpa/ns/$letter/$USER/gemini @@ -153,9 +158,9 @@ gemini() scp /sdf/arpa/ns/$letter/$USER/gemini/$month-e02 $USER@ma.sdf.org:/meta/gemini/$USER/posts/$year/$month.gmi } -# Comment out the service that you're not using, or to aid in getting one to display correctly at a time finger gopher +web gemini exit 0