]> git.proxmox.com Git - debcargo-conf.git/blob - repackage.sh
clap-complete - remove unsatisfiable dev-depends.
[debcargo-conf.git] / repackage.sh
1 #!/bin/bash
2 # Repackage a crate at the exact version that it was packaged at.
3 #
4 # Usage: ./repackage.sh <CRATE> [<SEMVER>]
5
6 . ./vars.sh.frag
7
8 if ! shouldbuild "$BUILDDIR/debian/changelog" "$PKGDIR/debian/changelog" && \
9 ! shouldbuild "$BUILDDIR/debian/changelog" "$DEBCARGO"; then
10 exit 0
11 fi
12
13 REALVER="$(get_existing_version "$PKGDIR")"
14 run_debcargo --no-overlay-write-back --changelog-ready