1#! /bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3 4REMOTE_GIT=/pub/scm/utils/dtc/dtc.git 5REMOTE_PATH=/pub/software/utils/dtc 6 7set -e 8 9kup_one () { 10 VERSION="$1" 11 12 TAG="v$VERSION" 13 14 PREFIX="dtc-$VERSION/" 15 TAR="dtc-$VERSION.tar" 16 SIG="$TAR.sign" 17 18 git archive --format=tar --prefix="$PREFIX" -o "$TAR" "$TAG" 19 gpg --detach-sign --armor -o "$SIG" "$TAR" 20 21 ls -l "$TAR"* 22 23 # Verify the signature as a sanity check 24 gpg --verify "$SIG" "$TAR" 25 26 kup put --tar --prefix="$PREFIX" "$REMOTE_GIT" "$TAG" "$SIG" "$REMOTE_PATH/$TAR.gz" 27} 28 29for version; do 30 kup_one $version 31done 32 33