star-ty

Generate content for online publication
git clone git://git.meso-star.fr/star-ty.git
Log | Files | Refs | README | LICENSE

commit f4207e12289be3041c203a74cd5ba61a09192a17
parent 0d0469d8cae4e9efd8f9669dfd35619aa26e6999
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 29 Sep 2025 22:15:26 +0200

Update the access rights for installed hooked files

Update their group according to the GROUP macro and make them writable
by the group. In fact, use the same installation command as for normal
files.

Diffstat:
Msrc/sty-hooks | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sty-hooks b/src/sty-hooks @@ -129,8 +129,9 @@ printf '%s' "${hook}" | while read -r i; do # Set the target that installs website resources generated by the hook printf '%s-install: %s\n' "${prefix}" "${tgt}" - printf " @rsync -avzrR --files-from=%s ./ \$(PREFIX)\n" \ - "${tgt}" + printf ' @rsync -avzrR --delete-after --progress \\\n' + printf ' --chmod=Dg+s,g+w,Fg+w --chown=:'"\$(GROUP)"' --omit-dir-times \\\n' + printf ' --files-from=%s ./ '"\$(PREFIX)"'\n' "${tgt}" printf 'install__: %s-install\n' "${prefix}" # Save the current section and priority of the hook that has just been