meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit 48e82eb0803c278ab8d30fd0d1d8e92404cd1654
parent 7308f81b9086fac48631b88d23e5880b84abd541
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 26 Aug 2025 14:21:07 +0200

A.R.T.: add a hook that signs the archives

The links to these files were broken because they did not exist.

Diffstat:
Aart/hooks/xx-sign-archives.sh | 35+++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+), 0 deletions(-)

diff --git a/art/hooks/xx-sign-archives.sh b/art/hooks/xx-sign-archives.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +# Copyright (C) 2017-2025 |Méso|Star> (contact@meso-star.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +set -e + +find downloads -name "*.tgz" \ +| sort \ +| while read -r i; do + + sign="${i}.sig" + + if ! [ -f "${sign}" ]; then + >&2 printf 'Signing %s\n' "${i}" + gpg --yes -a -o "${sign}" --detach-sign "${i}" + fi + + # Write the generated files to standard output to inform the build + # system which files it needs to handle during installation. + printf '%s/%s\n' "${PWD##*/}" "${i}.sig" + +done