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

set -e

mkdir -p out

docker build -t dh-make-perl .

docker run --rm -v "${PWD}/scripts:/scripts:ro" \
	-v "${PWD}/out:/out" -e USER=$(id -u) -e GROUP=$(id -g) \
	-e "CPANMODULE=$1" \
	-e "DEBEMAIL=${DEBEMAIL}" -e "DEBFULLNAME=${DEBFULLNAME}" \
	-e "LOGNAME=${LOGNAME}" \
	dh-make-perl /scripts/makedeb-docker-helper

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