diff options
-rwxr-xr-x | examples/gbp-upload | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/gbp-upload b/examples/gbp-upload new file mode 100755 index 00000000..b2204b6d --- /dev/null +++ b/examples/gbp-upload @@ -0,0 +1,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}" |