#!/bin/bash
set -e
cd "$(dirname "$0")"
curl -sO https://spqrz.gitlab.io/M3GAN-files.epub
unzip -qo M3GAN-files.epub
FilesInOrder=$(grep ']*\) [^>]*>/<\1>/g;s,*[^hpeb/][^>]*>,,g;s,[^<]*[^<]*[^<]*,,g;s,,,g;s,is legible.
,is legible.Rest of chapter (split to fit the 30k limit)
,;s,Aftermath: Cole:,Aftermath: Cole:
,;s/\n one-section-per-line.txt
# Clean up
rm -rf epub* co* META* *.css *.ncx titlepage* mimetype
echo 1 > bookmark.txt
# Print instructions
echo "Book initialised. To start reading, run $(dirname "$0")/read"