scripts for my gemini capsule
* ccel: redirect to authors script
| -rwxr-xr-x | ccel.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -5,6 +5,13 @@ then return fi +hasslash=$(echo "$QUERY_STRING"|grep '/') +if [ "$hasslash" = "" ] +then + printf "30 /cgi-bin/ccelauthor.sh?$QUERY_STRING\r\n" + exit 0 +fi printf "20 text/gemini\r\n" printf "=> %s This page was automatically generated from the following CCEL book (http)\n" https://ccel.org/ccel/"$QUERY_STRING" +printf "=> /thml2gmi/ and converted with thml2gmi\n" curl https://ccel.org/ccel/"$QUERY_STRING".xml | ./thml2gmi.py /dev/stdin |