build.sh: point to system compiler via rust-toolchain

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-01-15 16:25:14 +01:00
parent 0ecf1abf3c
commit 95ab7b6865

View File

@ -9,6 +9,7 @@ CRATE=$1
BUILDCMD=${BUILDCMD:-"dpkg-buildpackage -b -uc -us"}
mkdir -p build
echo system >build/rust-toolchain
rm -rf "build/${CRATE}"
debcargo package --config "$PWD/${CRATE}/debian/debcargo.toml" --changelog-ready --no-overlay-write-back --directory "$PWD/build/${CRATE}" "${CRATE}" "$(dpkg-parsechangelog -l "${CRATE}/debian/changelog" -SVersion | sed -e 's/-.*//')"