diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index 4d19254d..4402c105 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -276,6 +276,9 @@ do printf "Done.\n" fi + # Get the book URL + bookUrl=$(grep --only-matching --extended-regexp ".+?" "${workDir}"/src/epub/content.opf | sed --regexp-extended "s/.*?url:https:\/\/standardebooks.org(.*?)<.*/\1/g") + # Get the last commit date so that we can update the modified timestamp in # deployed content.opf. generate-opds uses this timestamp in its output. modifiedDate=$(TZ=UTC git log --date=iso-strict-local -1 --pretty=tformat:"%cd" --abbrev-commit | sed "s/+00:00/Z/") @@ -291,7 +294,7 @@ do se recompose-epub --xhtml --output "${workDir}"/single-page.xhtml --extra-css-file="${webRoot}/www/css/web.css" "${workDir}" # Add a navbar with a link back to the homepage - sed --in-place --regexp-extended 's//