File: upload.sh

package info (click to toggle)
knxd 0.14.73-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,860 kB
  • sloc: cpp: 24,913; ansic: 4,936; pascal: 3,728; makefile: 529; sh: 297; ruby: 132; java: 65; python: 40
file content (21 lines) | stat: -rwxr-xr-x 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -ex
if ! test -v DEBSIGN_KEYID && ! test -v KEYID ; then
	echo [DEBSIGN_]KEYID not set
	exit 1
fi

D="$(git describe --tags --exact-match main)"
git push salsa main $D

git checkout debian

D="$(git describe --tags --exact-match main)"

test -s ../knxd_$D.orig.tar.gz || \
wget -O ../knxd_$D.orig.tar.gz https://salsa.debian.org/smurf/knxd/-/archive/$D/knxd-0.$D.tar.gz
dgit --dpm --ch:-sa --quilt=single build-source
debsign -S -k${DEBSIGN_KEYID:-${KEYID}}
git push salsa debian

# DGIT_DRS_EMAIL_NOREPLY=smurf@debian.org dgit-repos-server debian . /usr/share/keyrings/debian-keyring.gpg,a --tag2upload https://salsa.debian.org/smurf/knxd.git "$D"