aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/gbp-upload
blob: b2204b6d75a99025357e938042be961717b82025 (plain)
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
#
# Tag, upload to the Debian archive and push to the remote

set -e

REMOTE=salsa+rw

if gbp config upload.remote; then
    REMOTE="$(gbp config upload.remote)"
fi

VERSION="$(dpkg-parsechangelog -S Version)"
SOURCE="$(dpkg-parsechangelog -S Source)"
CHANGES="../${SOURCE}_${VERSION}_source.changes"

less "${CHANGES}"

gbp tag
debsign -S

dput "${CHANGES}"
gbp push "${REMOTE}"