#!/bin/sh# Repackage a crate at the exact version that it was packaged at.## Usage: ./repackage.sh <CRATE> [<SEMVER>]../vars.sh.frag
if!shouldbuild"$BUILDDIR/debian/changelog""$PKGDIR/debian/changelog"&&\!shouldbuild"$BUILDDIR/debian/changelog""$DEBCARGO";thenexit0fiREALVER="$(get_existing_version"$PKGDIR")"run_debcargo--no-overlay-write-back--changelog-ready