From dd48cc11119386b316cab817ce349e1c4a79212a Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 4 Jul 2026 01:43:04 +0100 Subject: [PATCH] Fetch ebook count into book_count.html for homepage build --- scripts/cron-jekyll.sh | 1 + scripts/dev-jekyll.sh | 2 ++ scripts/prod-jekyll.sh | 2 ++ 3 files changed, 5 insertions(+) diff --git a/scripts/cron-jekyll.sh b/scripts/cron-jekyll.sh index 7ef70b6..3bd94f9 100755 --- a/scripts/cron-jekyll.sh +++ b/scripts/cron-jekyll.sh @@ -27,6 +27,7 @@ OLDSUM=`/usr/bin/sum ${BUILD}/_includes/latest_covers.html | /usr/bin/cut -f1 -d # This is going to appdev: /usr/bin/wget --quiet -O ${BUILD}/_includes/latest_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/latest/10" /usr/bin/wget --quiet -O ${BUILD}/_includes/popular_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/popular/10" +/usr/bin/wget --quiet -O ${BUILD}/_includes/book_count.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/" # Are the covers different than previously? NEWSUM=`/usr/bin/sum ${BUILD}/_includes/latest_covers.html | /usr/bin/cut -f1 -d" "` diff --git a/scripts/dev-jekyll.sh b/scripts/dev-jekyll.sh index 346c225..f13ff14 100755 --- a/scripts/dev-jekyll.sh +++ b/scripts/dev-jekyll.sh @@ -16,6 +16,8 @@ git checkout remotes/origin/dev # Fetch input, the popular covers: /usr/bin/wget --quiet -O ${BUILD}/_includes/popular_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/popular/10" +# Fetch input, the exact ebook count: +/usr/bin/wget --quiet -O ${BUILD}/_includes/book_count.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/" # This deploys the new content. Any errors will be returned; otherwise diff --git a/scripts/prod-jekyll.sh b/scripts/prod-jekyll.sh index 22f29ff..9d6d47f 100755 --- a/scripts/prod-jekyll.sh +++ b/scripts/prod-jekyll.sh @@ -14,6 +14,8 @@ git checkout remotes/origin/master /usr/bin/wget --quiet -O ${BUILD}/_includes/latest_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/latest/10" # Fetch input, the popular covers: /usr/bin/wget --quiet -O ${BUILD}/_includes/popular_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/popular/10" +# Fetch input, the exact ebook count: +/usr/bin/wget --quiet -O ${BUILD}/_includes/book_count.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/"