summaryrefslogtreecommitdiff
path: root/mkdeps.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2026-09-11 13:38:15 -0300
committerEuAndreh <eu@euandre.org>2026-09-11 13:38:15 -0300
commit1343c53e710a5afda6671c9861dcb7cca153ddf8 (patch)
tree1841ac376f3c1c20e04efbb84d6e40368896f2d8 /mkdeps.sh
parentSpell the attribute names the references use (diff)
downloadeuandre.org-1343c53e710a5afda6671c9861dcb7cca153ddf8.tar.gz
euandre.org-1343c53e710a5afda6671c9861dcb7cca153ddf8.tar.xz
Translate the content with maritacag rather than po4a
ab781e1 moved the manual pages over and left this behind: the i18n target was changed to maritacag(1), but the rule that actually writes the site's translations -- src/i18n.sentinel, emitted by mkdeps.sh -- still shelled out to po4a. So the build kept needing po4a even though nothing else in the fleet did, and the package in pkgs still carried it as an input. --no-update rather than the bare invocation po4a had. Everywhere else in the fleet a build writes translations and never catalogues; "make i18n" is what brings those up to the masters. The old rule did both, which is why the i18n target beside it was a duplicate of it. Byte for byte the same: over a clean checkout, po4a, maritacag and maritacag --no-update each write the identical src/ tree, and none of the three rewrites a catalogue. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BMowJCogxLWcMdVYYhbLpH
Diffstat (limited to '')
-rwxr-xr-xmkdeps.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/mkdeps.sh b/mkdeps.sh
index 37f4237..dbb1af4 100755
--- a/mkdeps.sh
+++ b/mkdeps.sh
@@ -304,16 +304,18 @@ done
media | sed 's/^/media\t/'
} | mkwb deps src/config.json
-## What po4a writes. Naming them here is what lets them be
-## derived: deps.mk is written before make runs, so a translation
+## What the translator writes. Naming them here is what lets them
+## be derived: deps.mk is written before make runs, so a translation
## that is not named cannot be built, and would have to be
## committed instead.
translations | varlist 'translations'
## One run writes all of them, so they hang off a stamp rather
-## than each invoking po4a for itself.
+## than each invoking the translator for itself. --no-update
+## because a build writes translations and never catalogues; "make
+## i18n" is what brings those up to the masters.
printf 'src/i18n.sentinel: po/po4a.cfg %s\n' "$(find po -maxdepth 1 -name '*.po' | sort | tr '\n' ' ')"
-printf '\tpo4a po/po4a.cfg\n'
+printf '\tmaritacag --no-update po/po4a.cfg\n'
printf '\ttouch $@\n\n'
printf '$(translations): src/i18n.sentinel\n\n'