File: kup-dtc

package info (click to toggle)
device-tree-compiler 1.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,116 kB
  • sloc: ansic: 13,916; sh: 1,200; asm: 713; lex: 522; python: 507; yacc: 499; makefile: 313; perl: 74
file content (32 lines) | stat: -rwxr-xr-x 610 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later

REMOTE_GIT=/pub/scm/utils/dtc/dtc.git
REMOTE_PATH=/pub/software/utils/dtc

set -e

kup_one () {
    VERSION="$1"

    TAG="v$VERSION"

    PREFIX="dtc-$VERSION/"
    TAR="dtc-$VERSION.tar"
    SIG="$TAR.sign"

    git archive --format=tar --prefix="$PREFIX" -o "$TAR" "$TAG"
    gpg --detach-sign --armor -o "$SIG" "$TAR"

    ls -l "$TAR"*

    # Verify the signature as a sanity check
    gpg --verify "$SIG" "$TAR"

    kup put --tar --prefix="$PREFIX" "$REMOTE_GIT" "$TAG" "$SIG" "$REMOTE_PATH/$TAR.gz" 
}

for version; do
    kup_one $version
done