summaryrefslogtreecommitdiff
path: root/tools/build-debian
blob: 0e496a8f01ee0b86258f21666126d3e2d222fc03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e

## tools/build-builder
##
## Builds a Debian package for the current tree. Output in ./target/debian.
##
## Requires the Debian builder (see tools/build-builder).

cd "$(dirname "$0")/.."

for platform in linux/arm64 linux/amd64; do
	docker run \
		--platform "$platform" \
		--rm \
		--interactive \
		--tty \
		--volume "$PWD:/app" \
		"pilcrow-debian-builder:$(tools/version)" \
			cargo deb
done