summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--txt/books.txt1
-rw-r--r--www/causal.agency/Makefile2
-rw-r--r--www/causal.agency/dais.html11
-rw-r--r--www/photo.causal.agency/trips.html24
-rw-r--r--www/they.causal.agency/Makefile4
-rw-r--r--www/they.causal.agency/post-update.sh41
6 files changed, 74 insertions, 9 deletions
diff --git a/txt/books.txt b/txt/books.txt
index a096a2f4..d8166d72 100644
--- a/txt/books.txt
+++ b/txt/books.txt
@@ -1,5 +1,6 @@
 [ 2025 ]
 
+  5. ★★★ Alix E. Harrow, The Everlasting
   4. ★★☆ Arkady Martine, Rose/House
   3. ★★☆ H. E., second draft of Last Train Home
   2. ★★☆ Nicola Griffith, Spear
diff --git a/www/causal.agency/Makefile b/www/causal.agency/Makefile
index 8c74f8f1..d3af7265 100644
--- a/www/causal.agency/Makefile
+++ b/www/causal.agency/Makefile
@@ -1,7 +1,7 @@
 WEBROOT = /var/www/causal.agency
 
 GEN = index.html scheme.css scheme.png
-FILES = ${GEN} style.css alpha.html lands.html
+FILES = ${GEN} style.css alpha.html dais.html lands.html
 
 all: ${FILES}
 
diff --git a/www/causal.agency/dais.html b/www/causal.agency/dais.html
new file mode 100644
index 00000000..109654d3
--- /dev/null
+++ b/www/causal.agency/dais.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<title>Dais</title>
+<meta charset="utf-8">
+<style>
+body { line-height: 1.5em; max-width: 78ch; margin: auto; padding: 0.5em 1ch; }
+</style>
+
+<h1>First occurrences of the word “dais”</h1>
+<ol>
+<li>A. K. Larkwood, The Unspoken Name: p. 19
+</ol>
diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html
index d65aeaef..e81be6ef 100644
--- a/www/photo.causal.agency/trips.html
+++ b/www/photo.causal.agency/trips.html
@@ -47,13 +47,6 @@ input[type="number"] { width: 5ch; }
 </form>
 
 <datalist id="films">
-	<option>Ferrania P30 80</option>
-	<option>Flic Film Elektra 100</option>
-	<option>Ilford FP4 Plus 125</option>
-	<option>Fomapan Creative 200</option>
-	<option>Harman Phoenix 200</option>
-	<option>Shanghai Color 400</option>
-	<option>Reflx Lab 800T</option>
 </datalist>
 </section>
 
@@ -158,6 +151,9 @@ function setBodies() {
 			select.appendChild(option);
 		}
 	}
+	if (trips.length) {
+		selects.forEach(select => select.value = trips[trips.length-1].body);
+	}
 }
 setBodies();
 
@@ -229,7 +225,7 @@ function setTrips() {
 				`: ${trip.firstExposure}–${trip.lastExposure}`
 			));
 			if (
-				body.mount != body.name &&
+				(!body || body.mount != body.name) &&
 				(!index || trip.lens != rollTrips[index-1].lens)
 			) {
 				li.appendChild(document.createElement("br"));
@@ -362,4 +358,16 @@ function addTrip() {
 	setTripBody();
 }
 
+function setFilms() {
+	let datalist = document.getElementById("films");
+	datalist.innerHTML = "";
+	let films = new Set(trips.reverse().map(trip => trip.film));
+	for (let film of films.values().take(20)) {
+		let option = document.createElement("option");
+		option.innerText = film;
+		datalist.appendChild(option);
+	}
+}
+setFilms();
+
 </script>
diff --git a/www/they.causal.agency/Makefile b/www/they.causal.agency/Makefile
new file mode 100644
index 00000000..81f47ea9
--- /dev/null
+++ b/www/they.causal.agency/Makefile
@@ -0,0 +1,4 @@
+ROOT = /var/www/man
+
+install: post-update.sh
+	install post-update.sh ${ROOT}/post-update
diff --git a/www/they.causal.agency/post-update.sh b/www/they.causal.agency/post-update.sh
new file mode 100644
index 00000000..db2d5936
--- /dev/null
+++ b/www/they.causal.agency/post-update.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -eu
+
+do_tree() {
+	tree=$1
+	manpath=$2
+	echo "Copying manuals for ${tree}..."
+	git ls-tree $tree | while read -r mode type hash name; do
+		if [ $type != blob ]; then
+			continue
+		fi
+		case "$name" in
+			(README.7)
+				continue
+				;;
+			(*.[1-9])
+				section=${name##*.}
+				mkdir -p /var/www/man/${manpath}/man${section}
+				git cat-file $type $hash \
+					>/var/www/man/${manpath}/man${section}/${name}
+				;;
+		esac
+	done
+	if test -d /var/www/man/${manpath}; then
+		makewhatis /var/www/man/${manpath}
+		if ! fgrep -q ${manpath} /var/www/man/manpath.conf; then
+			echo $manpath >>/var/www/man/manpath.conf
+			sort -o /var/www/man/manpath.conf /var/www/man/manpath.conf
+		fi
+	fi
+}
+
+do_tree HEAD HEAD
+
+repo=${PWD##*/}
+for tag in $(git tag); do
+	manpath=${repo%.git}-${tag}
+	if ! test -d /var/www/man/${manpath}; then
+		do_tree $tag $manpath
+	fi
+done