aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/gbp-upload
blob: 7f4db5d729da4c26a328f83cb4b78d2a97e8402e (plain)
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
#!/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 --quit-at-eof "${CHANGES}"
echo "Hit <RETURN> to upload, <CTRL>-C to quit"
read -r VAL

gbp tag
debsign -S

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