]>
git.proxmox.com Git - proxmox.git/blob - build.sh
5 export CARGO
=/usr
/bin
/cargo
6 export RUSTC
=/usr
/bin
/rustc
9 BUILDCMD
=${BUILDCMD:-"dpkg-buildpackage -b -uc -us"}
12 echo system
>build
/rust-toolchain
13 rm -rf "build/${CRATE}"
15 CONTROL
="$PWD/${CRATE}/debian/control"
17 if [ -e "$CONTROL" ]; then
18 # check but only warn, debcargo fails anyway if crates are missing
19 dpkg-checkbuilddeps
$PWD/${CRATE}/debian
/control || true
20 rm -f "$PWD/${CRATE}/debian/control"
24 --config "$PWD/${CRATE}/debian/debcargo.toml" \
26 --no-overlay-write-back \
27 --directory "$PWD/build/${CRATE}" \
29 "$(dpkg-parsechangelog -l "${CRATE}/debian
/changelog
" -SVersion | sed -e 's/-.*//')"
32 rm -f debian
/source
/format.debcargo.hint
35 cp debian
/control
"$CONTROL"