From bac3e736fad6a70072d30719f738d22d9f34b8c5 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 30 Jun 2024 12:09:04 -0400 Subject: Accommodate lower-case .jpg files --- www/photo.causal.agency/.gitignore | 3 ++- www/photo.causal.agency/generate.sh | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'www') diff --git a/www/photo.causal.agency/.gitignore b/www/photo.causal.agency/.gitignore index a5f66a9d..4e55d718 100644 --- a/www/photo.causal.agency/.gitignore +++ b/www/photo.causal.agency/.gitignore @@ -1,2 +1,3 @@ -static/ *.JPG +*.jpg +static/ diff --git a/www/photo.causal.agency/generate.sh b/www/photo.causal.agency/generate.sh index 558b8a54..fbc3efd6 100644 --- a/www/photo.causal.agency/generate.sh +++ b/www/photo.causal.agency/generate.sh @@ -211,12 +211,12 @@ for date in 20*; do if ! test -f $page; then echo $page >&2 page_head $date >$page - for photo in ${date}/*.JPG; do + for photo in ${date}/*.[Jj][Pp][Gg]; do preview=$(preview $photo) if ! test -f static/${photo}; then ln $photo static/${photo} fi - page_photo $photo $preview ${photo%.JPG}.txt >>$page + page_photo $photo $preview ${photo%.[Jj][Pp][Gg]}.txt >>$page done fi set -- $date "$@" @@ -229,7 +229,7 @@ atom_head >static/feed.atom for date; do index_page $date >>static/index.html atom_entry_head $date >>static/feed.atom - for photo in ${date}/*.JPG; do + for photo in ${date}/*.[Jj][Pp][Gg]; do thumbnail=$(thumbnail $photo) index_photo $date $photo $thumbnail >>static/index.html index_photo $date $photo $thumbnail $Root | encode >>static/feed.atom -- cgit 1.4.1