From 0922bba03cdb364bbf9322ab6038881826f7894a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 23 Mar 2021 17:43:23 -0400 Subject: * Grace Community Church Hymn site: Add shell wrapper around this --- gcc.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 gcc.sh (limited to 'gcc.sh') diff --git a/gcc.sh b/gcc.sh new file mode 100755 index 0000000..6d7e089 --- /dev/null +++ b/gcc.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ "$PATH_INFO" = "" ] +then + printf "20 text/gemini\r\n" + curl https://gccsatx.com/hymns/ | grep ' /cgi-bin/gcc.sh$PATH_INFO?.mp3 Listen to this!\n" +curl https://gccsatx.com/hymns$PATH_INFO/ | sed 's@
@@g' | sed 's@

@@' | grep -v '<' | grep -v '!important' | grep -v '}\|{\|wp-smiley' | sed 's/\s\+/ /g' | uniq +exit 0 -- cgit 1.4.1