mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Use - as version-tag separator for libnvidia-container
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
f2b19b6ae9
commit
5aca0d147d
@ -36,9 +36,9 @@ NVIDIA_DOCKER_ROOT=${PROJECT_ROOT}/third_party/nvidia-docker
|
|||||||
# Get version for libnvidia-container
|
# Get version for libnvidia-container
|
||||||
libnvidia_container_version_tag=$(grep "#define NVC_VERSION" ${LIBNVIDIA_CONTAINER_ROOT}/src/nvc.h \
|
libnvidia_container_version_tag=$(grep "#define NVC_VERSION" ${LIBNVIDIA_CONTAINER_ROOT}/src/nvc.h \
|
||||||
| sed -e 's/#define NVC_VERSION[[:space:]]"\(.*\)"/\1/')
|
| sed -e 's/#define NVC_VERSION[[:space:]]"\(.*\)"/\1/')
|
||||||
libnvidia_container_version=${libnvidia_container_version_tag%%~*}
|
libnvidia_container_version=${libnvidia_container_version_tag%%-*}
|
||||||
libnvidia_container_tag=${libnvidia_container_version_tag##${libnvidia_container_version}}
|
libnvidia_container_tag=${libnvidia_container_version_tag##${libnvidia_container_version}}
|
||||||
libnvidia_container_tag=${libnvidia_container_tag##\~}
|
libnvidia_container_tag=${libnvidia_container_tag##\-}
|
||||||
|
|
||||||
versions_makefile=${NVIDIA_CONTAINER_TOOLKIT_ROOT}/versions.mk
|
versions_makefile=${NVIDIA_CONTAINER_TOOLKIT_ROOT}/versions.mk
|
||||||
# Get version for nvidia-container-toolit
|
# Get version for nvidia-container-toolit
|
||||||
|
Loading…
Reference in New Issue
Block a user