From a55fd9274b84bc5065268e9decd4b41d15326df8 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 10 Sep 2026 11:47:09 -0300 Subject: Name the i18n stamp a sentinel Every other file of its kind here is a sentinel, and .sentinel is what the suffix rules and the .gitignore already spell. One outlier called .stamp meant two names for the one idea. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01KxLpaNQThKfMG3ecCJptP9 --- .gitignore | 2 +- deps.mk | 12 ++++++------ mkdeps.sh | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index b1fd735..4f71a1f 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,7 @@ ## the repository carrying them. The masters and the reference ## strings stay; a language's own name is not translated from ## anything, so that stays too. -/src/i18n.stamp +/src/i18n.sentinel !/src/i18n.txt /src/content/de/**/*.adoc /src/content/eo/**/*.adoc diff --git a/deps.mk b/deps.mk index e8c3b1f..e4d7ac4 100644 --- a/deps.mk +++ b/deps.mk @@ -1565,11 +1565,11 @@ translations = \ src/i18n.fr.txt \ src/i18n.pt.txt \ -src/i18n.stamp: po/po4a.cfg po/en.po po/eo.po po/es.po po/fr.po po/pt.po +src/i18n.sentinel: po/po4a.cfg po/en.po po/eo.po po/es.po po/fr.po po/pt.po po4a po/po4a.cfg touch $@ -$(translations): src/i18n.stamp +$(translations): src/i18n.sentinel translations.txt = src/translations.txt @@ -1869,7 +1869,7 @@ side-assets = \ $$(find $(root.dir) -name 'sortdata.txt' 2>/dev/null) \ $(root.dir)/*/*/feed.*.xml \ $(translations) \ - src/i18n.stamp \ + src/i18n.sentinel \ $(root.dir)/.well-known/ \ src/comments/ \ $$(cat src/all-symlinks.txt 2>/dev/null) \ @@ -2445,6 +2445,6 @@ check: check-unit ALWAYS: -$(sources.html) $(sources.json): src/i18n.stamp -$(listings.htmllisting) $(categories.xml): src/i18n.stamp -$(articles.feedentry): src/i18n.stamp +$(sources.html) $(sources.json): src/i18n.sentinel +$(listings.htmllisting) $(categories.xml): src/i18n.sentinel +$(articles.feedentry): src/i18n.sentinel diff --git a/mkdeps.sh b/mkdeps.sh index 496c13e..37f4237 100755 --- a/mkdeps.sh +++ b/mkdeps.sh @@ -312,10 +312,10 @@ translations | varlist 'translations' ## One run writes all of them, so they hang off a stamp rather ## than each invoking po4a for itself. -printf 'src/i18n.stamp: po/po4a.cfg %s\n' "$(find po -maxdepth 1 -name '*.po' | sort | tr '\n' ' ')" +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 '\ttouch $@\n\n' -printf '$(translations): src/i18n.stamp\n\n' +printf '$(translations): src/i18n.sentinel\n\n' ## The map mkwb conf reads to link a page to its translations, @@ -338,6 +338,6 @@ mkwb rules ## comes after them. It has to name what renders rather than ## what a page is made of: an article never writes a .htmlheader ## of its own, so naming that missed every one of them. -printf '\n$(sources.html) $(sources.json): src/i18n.stamp\n' -printf '$(listings.htmllisting) $(categories.xml): src/i18n.stamp\n' -printf '$(articles.feedentry): src/i18n.stamp\n' +printf '\n$(sources.html) $(sources.json): src/i18n.sentinel\n' +printf '$(listings.htmllisting) $(categories.xml): src/i18n.sentinel\n' +printf '$(articles.feedentry): src/i18n.sentinel\n' -- cgit v1.3