commit a7fc7f651310d60ab5fbc770ecd9cade417eeeea
parent 81ddd6468621d331b8ff227eca2a21df6548d2b0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 27 Aug 2025 15:25:03 +0200
Fix of HTML content prerequisites
The prerequisites for dynamically generated HTML files were not
correctly defined. Their intermediate Markdown file must have hook
execution as a prerequisite, as their content may depend on the output
of the hooks.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/hooks.sh b/scripts/hooks.sh
@@ -28,7 +28,7 @@ hook="$(sh ./scripts/list.sh hook)"
sections | while read -r i; do
shtml_section="$(printf '%s\n' "${shtml}" \
- | sed -n "/^${i}\//p" | tr '\n' ' ')"
+ | sed -n "/^${i}\//{s/\.sh/\.md/g;p;}" | tr '\n' ' ')"
hook_section="$(printf '%s\n' "${hook}" \
| sed -n "/^${i}\//p" | tr '\n' ' ' \
| sed -e 's/\.sh[[:space:]]/.hook /g')"
@@ -41,6 +41,11 @@ sections | while read -r i; do
# themselves, because even if the scripts have not changed, their
# output may have been updated, which can impact the HTML content
# generated at build time.
+ #
+ # Furthermore, it is not the HTML file itself that depends on the
+ # hook's output, but rather the intermediate Markdown dynamically
+ # generated by the script, whose output may depend on the execution of
+ # hooks.
printf '%s: %s\n' "${shtml_section}" "${hook_section}"
done