aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/gbp-try-ff
blob: f8cfb4091b2cb38fd97b646964805e0dd5aa7fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# Try to update a package to a new upstream version

set -e

git checkout debian/sid
gbp pq import --force
git checkout debian/sid
gbp import-orig --uscan --no-interactive

if ! gbp pq rebase; then
    echo "Automatic rebase failed"
    git rebase --abort
    exit 1
fi

gbp pq export --commit
gbp dch -S -a
gbp buildpackage --git-ignore-new