summaryrefslogtreecommitdiff
path: root/scripts/makedeb-docker
blob: 241393ce1be8cac902a9b800d79671d25a1eede1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

mkdir -p out

docker run --rm -v "${PWD}:/orig:ro" -v "${PWD}/scripts:/scripts:ro" \
	-v "${PWD}/out:/out" -e USER=$(id -u) -e GROUP=$(id -g) \
	-e "DEBEMAIL=${DEBEMAIL}" -e "DEBFULLNAME=${DEBFULLNAME}" \
	-e "LOGNAME=${LOGNAME}" -e "VERSION=$(git describe --dirty)-1" \
	debian:buster /scripts/makedeb-docker-helper

echo "Debian package has been written to $(pwd)/out"