From: Thomas Lamprecht Date: Sun, 21 May 2023 12:54:27 +0000 (+0200) Subject: d/rules: expand make variable directly for version mismatch check X-Git-Tag: v3.0.1~53 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=26cbc819a40015941e889720db893c56152d21c9;p=proxmox-backup.git d/rules: expand make variable directly for version mismatch check Signed-off-by: Thomas Lamprecht --- diff --git a/debian/rules b/debian/rules index ff85b241..79366229 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,8 @@ endif dh $@ --with=bash-completion override_dh_auto_configure: - @perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = $$ENV{DEB_VERSION_UPSTREAM}; die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml + @perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \ + die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system dh_auto_configure