Codebase list rust-serde-xml-rs / 0188a3c5-866c-442e-889e-2fdda6b2fdfb/main repackage.sh
0188a3c5-866c-442e-889e-2fdda6b2fdfb/main

Tree @0188a3c5-866c-442e-889e-2fdda6b2fdfb/main (Download .tar.gz)

repackage.sh @0188a3c5-866c-442e-889e-2fdda6b2fdfb/mainraw · history · blame

#!/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"; then
	exit 0
fi

REALVER="$(get_existing_version "$PKGDIR")"
run_debcargo --no-overlay-write-back --changelog-ready