diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2020-12-03 23:23:39 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2020-12-03 23:23:39 -0500 |
| commit | 4aa90f0c0cf3400728152a33d20fc8d6d37b6532 (patch) | |
| tree | 9c0277c6227c21714ffd82f2024d50af32f5d92a /ccel.sh | |
| download | cgi-bin-4aa90f0c0cf3400728152a33d20fc8d6d37b6532.tar.gz | |
CCEL: add script to convert a book
Diffstat (limited to 'ccel.sh')
| -rwxr-xr-x | ccel.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
