commit be7ab9a6e5b584aeb05db5bf26dd72695e546157
parent 0d078306a50c9afd2b042758db2be5f5feed8ec1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 25 Aug 2025 12:06:31 +0200
Add the priority prefix "xx-" to hooks
It is used for hooks that are independent of the execution order of
other hooks.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/hooks.sh b/hooks.sh
@@ -65,6 +65,12 @@ printf '%s\n' "${hook}" | while read -r i; do
file="$(basename "${hook}")"
prefix="${section}-${file%%.*}"
+ # The hook name begins with 'xx-', meaning that it does not depend on
+ # any other hook in the section.
+ if echo "${file}" | grep -qe '^xx-.*'; then
+ dep=""
+ fi
+
# Set the file in which the names of the files generated by the hook
# are stored as resources for the website, i.e., the files that must
# be deployed with the website.