scripts for my gemini capsule
CCEL: add script to convert a book
| -rwxr-xr-x | ccel.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#!/bin/sh +if [ "$QUERY_STRING" = "" ] +then + printf "10 Enter a ccel author/workname \r\n" + return +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" +curl https://ccel.org/ccel/"$QUERY_STRING".xml | ./thml2gmi.py /dev/stdin |