mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 07:58:54 +00:00

sh is rather inconvenient. I am about to introduce a bashism in vars.sh.frag and various others.
15 lines
395 B
Bash
Executable File
15 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
# 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
|