From 4aa90f0c0cf3400728152a33d20fc8d6d37b6532 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 3 Dec 2020 23:23:39 -0500 Subject: CCEL: add script to convert a book --- ccel.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ccel.sh (limited to 'ccel.sh') diff --git a/ccel.sh b/ccel.sh new file mode 100755 index 0000000..474c337 --- /dev/null +++ b/ccel.sh @@ -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 -- cgit 1.4.1