We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9efbdf commit 54fd3f0Copy full SHA for 54fd3f0
2 files changed
packaging/Dockerfile
@@ -1,6 +1,9 @@
1
ARG DEBIAN_RELEASE=stretch
2
FROM ev3dev/ev3dev-$DEBIAN_RELEASE-ev3-base
3
4
+ARG DEBIAN_RELEASE
5
+ENV DISTRO=$DEBIAN_RELEASE
6
+
7
# copy QEMU
8
COPY qemu-arm-static /usr/bin/qemu-arm-static
9
packaging/package.sh
@@ -41,8 +41,11 @@ PKG="jri-${DEB_JRI_MAJOR}-${DEB_JRI_PLATFORM}"
41
PKGVER="${DEB_JRI_MAJOR}.${DEB_JRI_MINOR}.${DEB_JRI_PATCH}~${DEB_JRI_BUILD}"
42
PKGNAME="${PKG}_${PKGVER}"
43
DATE=$(LC_ALL=C date -R)
44
-if [ ! -z "$DISTRO" ]; then
45
- DISTRO=stable
+if [ -z "$DISTRO" ]; then
+ echo "Please choose a target distro." >&2
46
+ exit 1
47
+else
48
+ echo "Building for ev3dev-$DISTRO"
49
fi
50
51
PKGDIR="/build/pkg/$PKGNAME"
0 commit comments