File: upload.sh

package info (click to toggle)
knxd 0.14.46-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,740 kB
  • sloc: cpp: 23,590; ansic: 4,881; pascal: 3,728; makefile: 511; sh: 270; ruby: 132; java: 65; python: 40
file content (23 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -ex
B="$(git describe --tags master | sed -e s/-.*//)"
test -n "$B"
git push salsa $B

git checkout debian

D="$(git describe --tags --exact-match debian || echo '')"
if test -z "$D" ; then
	git-debpush -u AFD79782F3BAEC020B28A19F72CF8E5E25B4C293 --upstream "$B" --remote salsa --quilt=baredebian
	D="$(git describe --tags --exact-match debian)"
fi
test -n "$D"
git push salsa $D

T=$(tempfile)
rm -f $T
mkdir $T
cd $T
trap 'cat overall.log; cd /; rm -rf $T' 0 1 2 15

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"