1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

fix(packages): move to overlays

This commit is contained in:
Kierán Meinhardt
2019-11-09 16:33:59 +01:00
parent e296de9ed1
commit d6dd9f82c4
25 changed files with 55 additions and 93 deletions

View File

@@ -0,0 +1,11 @@
{ xmlstarlet, curl, writeShellScriptBin }:
writeShellScriptBin "odyssey" ''
if [ $# -eq 1 ] && (echo "$1" | grep -Eq '[0-9]+\.[0-9]+'); then
${curl}/bin/curl -Gs http://www.perseus.tufts.edu/hopper/CTS \
-d request=GetPassage \
-d "urn=urn:cts:greekLit:tlg0012.tlg002:$1" \
| ${xmlstarlet}/bin/xmlstarlet sel -t -v 'cts:GetPassage//tei:div'
else
echo you must supply BOOK.VERSE
fi
''