Add an option to upload to experimental
Sylvestre Ledru
5 years ago
36 | 36 |
|
37 | 37 |
::
|
38 | 38 |
|
39 | |
./release.sh <rust-crate-name> # or
|
40 | |
./release.sh <rust-crate-name> <old-version> # as appropriate
|
|
39 |
./release.sh <rust-crate-name> # or
|
|
40 |
./release.sh <rust-crate-name> <old-version> # as appropriate
|
|
41 |
DISTRO=experimental ./release.sh <rust-crate-name> # to target another distro
|
41 | 42 |
|
42 | 43 |
This prepares the necessary Debian files in ``build/``, and creates a git
|
43 | 44 |
branch to manage the packaging until it is accepted in Debian itself. You need
|
48 | 48 |
|
49 | 49 |
( cd "$PKGDIR"
|
50 | 50 |
sed -i -e s/UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO/UNRELEASED/ debian/changelog
|
51 | |
dch -m -r -D unstable ""
|
|
51 |
if test -z "$DISTRO"; then
|
|
52 |
# To upload to other distro like experimental
|
|
53 |
DISTRO=unstable
|
|
54 |
fi
|
|
55 |
dch -m -r -D $DISTRO ""
|
52 | 56 |
git add debian/changelog
|
53 | 57 |
)
|
54 | 58 |
|