]> git.proxmox.com Git - proxmox.git/blame - build.sh
add tests for check_api_permission
[proxmox.git] / build.sh
CommitLineData
a94de245
FG
1#!/bin/sh
2
3set -e
4
66d117f4
WB
5export CARGO=/usr/bin/cargo
6export RUSTC=/usr/bin/rustc
7
a94de245
FG
8CRATE=$1
9BUILDCMD=${BUILDCMD:-"dpkg-buildpackage -b -uc -us"}
10
11mkdir -p build
95ab7b68 12echo system >build/rust-toolchain
a94de245
FG
13rm -rf "build/${CRATE}"
14
66d117f4 15debcargo 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/-.*//')"
a94de245
FG
16cd "build/${CRATE}"
17${BUILDCMD}