summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-06-30 12:09:04 -0400
committerJune McEnroe <june@causal.agency>2024-06-30 12:09:04 -0400
commitbac3e736fad6a70072d30719f738d22d9f34b8c5 (patch)
tree82fe891d83c731fa2406ad580df2d7a4d6e9b687 /www
parentAdd another BACKXWASH show (diff)
downloadsrc-bac3e736fad6a70072d30719f738d22d9f34b8c5.tar.gz
src-bac3e736fad6a70072d30719f738d22d9f34b8c5.zip
Accommodate lower-case .jpg files
Diffstat (limited to 'www')
-rw-r--r--www/photo.causal.agency/.gitignore3
-rw-r--r--www/photo.causal.agency/generate.sh6
2 files changed, 5 insertions, 4 deletions
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