提交 eda5820e 编写于 作者: F Felix Abecassis

Improve the portability of the debian/control file

上级 4d2cf5ea
......@@ -35,6 +35,8 @@ ARG PKG_ARCH
ENV DEBFULLNAME "NVIDIA CORPORATION"
ENV DEBEMAIL "cudatools@nvidia.com"
ENV REVISION "$PKG_VERS-$PKG_REV"
ENV DISTRIB "UNRELEASED"
ENV SECTION ""
# output directory
ENV DIST_DIR=/tmp/nvidia-container-runtime-$PKG_VERS
......@@ -63,8 +65,8 @@ COPY config.toml.xenial $DIST_DIR/config.toml
WORKDIR $DIST_DIR
COPY debian ./debian
RUN dch --create --package nvidia-container-runtime -v "$REVISION" "v$REVISION" && \
RUN dch --create --package nvidia-container-runtime -v "$REVISION" "v$REVISION" -D "$DISTRIB" && \
dch -r ""
CMD debuild -i -us -uc -b && \
CMD debuild -eSECTION --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
mv /tmp/*.deb /dist
Source: nvidia-container-runtime
Section: devel
Section: @SECTION@utils
Priority: optional
Maintainer: NVIDIA CORPORATION <cudatools@nvidia.com>
Standards-Version: 3.9.8
......
#! /bin/sh
set -e
sed -i "s;@SECTION@;${SECTION:+$SECTION/};g" debian/control
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册