diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-11-08 09:16:57 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-08 09:30:49 +0100 |
commit | 3efd339421ac2171ce74c95304f2ea6791c65a8a (patch) | |
tree | b53174392f63aa3561b238c9752e42e6e0b36e25 /examples | |
parent | 486cbfd382fcc1c549e3cd84bf50f36a7680af7d (diff) |
examples: Add gbp-try-ff
Helper to fetch new upstream source, refresh patches and do a test
build.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-try-ff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/gbp-try-ff b/examples/gbp-try-ff new file mode 100755 index 00000000..f8cfb409 --- /dev/null +++ b/examples/gbp-try-ff @@ -0,0 +1,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 |