Add an option to upload to experimental

This commit is contained in:
Sylvestre Ledru 2019-04-07 14:26:03 +02:00
parent a7a70c104b
commit 699de4ac1b
2 changed files with 8 additions and 3 deletions

View File

@ -39,6 +39,7 @@ To prepare a release
./release.sh <rust-crate-name> # or
./release.sh <rust-crate-name> <old-version> # as appropriate
DISTRO=experimental ./release.sh <rust-crate-name> # to target another distro
This prepares the necessary Debian files in ``build/``, and creates a git
branch to manage the packaging until it is accepted in Debian itself. You need

View File

@ -49,7 +49,11 @@ fi
( cd "$PKGDIR"
sed -i -e s/UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO/UNRELEASED/ debian/changelog
dch -m -r -D unstable ""
if test -z "$DISTRO"; then
# To upload to other distro like experimental
DISTRO=unstable
fi
dch -m -r -D $DISTRO ""
git add debian/changelog
)