diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-03-23 08:23:40 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-03-23 08:23:40 -0400 |
| commit | b87fc2fa4e29f0e7e17b40faa66e6d5364c2f466 (patch) | |
| tree | ce1bbee7602c09b8ae19947c098c2f783bbfaa8b | |
| parent | 279f8c6c79f29b4009a7448fdecbc7f9a36a0c1d (diff) | |
| download | cgi-bin-b87fc2fa4e29f0e7e17b40faa66e6d5364c2f466.tar.gz | |
* ccel: add scripts which are in the wild
| -rwxr-xr-x | ccelauthor.sh | 9 | ||||
| -rwxr-xr-x | ccelindex.sh | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ccelauthor.sh b/ccelauthor.sh new file mode 100755 index 0000000..ef3eb86 --- /dev/null +++ b/ccelauthor.sh @@ -0,0 +1,9 @@ +#!/bin/sh +if [ "$QUERY_STRING" = "q" ] +then + printf "10 Enter a ccel author \r\n" + return +fi + +printf "20 text/gemini\r\n" +curl https://ccel.org/index/author |grep "/$QUERY_STRING/" | sed 's@ccel/@\t@g' |sed 's/"/\t/g' |cut -f3 | sed 's/^/=> ccel.sh?/g' diff --git a/ccelindex.sh b/ccelindex.sh new file mode 100755 index 0000000..3e30d08 --- /dev/null +++ b/ccelindex.sh @@ -0,0 +1,6 @@ +#!/bin/sh +printf "20 text/gemini\r\n" + + echo "=> ccel.sh?q Direct navigation" + curl https://ccel.org/index/author | grep 'show=worksBy' | sed 's@/@\t@g' | cut -f3 | sed 's/?.*//g' | sed 's/^/=> ccelauthor.sh?/g' + return |
