Remove leading zero in package version

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak
2021-10-28 15:40:22 +00:00
committed by Compute-Runtime-Automation
parent c58e8eeddd
commit 5869948389
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ get_l0_gpu_driver_version() {
__NEO_TAG_TMP=$(git -C ${REPO_DIR} describe --abbrev=1 --tags | awk -F"." '{ nn=split($NF, nfa, "."); if(nn==2) {printf("%s-%s", nfa[1], nfa[2]);} else {print $NF;} }')
NEO_TAG="${NEO_TAG:-$__NEO_TAG_TMP}"
unset __NEO_TAG_TMP
__NEO_L0_VERSION_PATCH_TMP=$(echo $NEO_TAG | awk -F '-' '{ print $1; }')
__NEO_L0_VERSION_PATCH_TMP=$(echo $NEO_TAG | awk -F '-' '{ print $1; }' | sed 's/^0*//')
NEO_L0_VERSION_PATCH="${NEO_L0_VERSION_PATCH:-$__NEO_L0_VERSION_PATCH_TMP}"
unset __NEO_L0_VERSION_PATCH_TMP
__NEO_L0_VERSION_HOTFIX_TMP=$(echo $NEO_TAG | awk -F '-' '{ if(NF>1) {printf(".%s", $2);} }')

View File

@ -21,7 +21,7 @@ get_opencl_version() {
__NEO_TAG_TMP=$(git -C ${REPO_DIR} describe --abbrev=1 --tags | awk -F"." '{ nn=split($NF, nfa, "."); if(nn==2) {printf("%s-%s", nfa[1], nfa[2]);} else {print $NF;} }')
NEO_TAG="${NEO_TAG:-$__NEO_TAG_TMP}"
unset __NEO_TAG_TMP
__NEO_OCL_VERSION_BUILD_TMP=$(echo $NEO_TAG | awk -F '-' '{ print $1; }')
__NEO_OCL_VERSION_BUILD_TMP=$(echo $NEO_TAG | awk -F '-' '{ print $1; }' | sed 's/^0*//')
NEO_OCL_VERSION_BUILD="${NEO_OCL_VERSION_BUILD:-$__NEO_OCL_VERSION_BUILD_TMP}"
unset __NEO_OCL_VERSION_BUILD_TMP
__NEO_OCL_VERSION_HOTFIX_TMP=$(echo $NEO_TAG | awk -F '-' '{ if(NF>1) {printf(".%s", $2);} }')