diff --git a/cmake/toolchain/nxcals.cmake b/cmake/toolchain/nxcals.cmake index c87bc92dd3bfc7105531ea8dc757a0ac4fe08828..57623c2b80883d4f1fe1457e67b349a164bd3165 100644 --- a/cmake/toolchain/nxcals.cmake +++ b/cmake/toolchain/nxcals.cmake @@ -2,8 +2,8 @@ set(NXCALS_LS_COMMAND "xrdfs root://eosproject.cern.ch ls ") set(NXCALS_CP_COMMAND "xrdcp") set(NXCALS_MGM_URL root://eosproject.cern.ch://) -set(PATTERN_NXCALS_JAVA "nxcals-data-access-libs") -set(PATTERN_NXCALS_PYTHON "nxcals_extraction_api_python3-") +set(PATTERN_NXCALS_JAVA "data-access-libs") +set(PATTERN_NXCALS_PYTHON "extraction_api_python3-") # a number followed by repeated (a dot followed by numbers or rc or b or (dev0) or letters or both) set(NXCALS_VERSION_MATCH "[0-9]((\\.|rc|b|)((dev)?[0-9]+)+)+") @@ -13,8 +13,8 @@ execute_process(COMMAND $ENV{SHELL} -c "python3 -m pip install --upgrade --user execute_process(COMMAND $ENV{SHELL} -c "${NXCALS_LS_COMMAND} ${EOS_PATH_NXCALS_DEV}" OUTPUT_VARIABLE NXCALS_CONTENT OUTPUT_STRIP_TRAILING_WHITESPACE) -execute_process(COMMAND $ENV{SHELL} -c "${NXCALS_LS_COMMAND} ${EOS_PATH_NXCALS_DEV}/${PATTERN_NXCALS_JAVA}* | grep -Eo \'${NXCALS_VERSION_MATCH}\'" OUTPUT_VARIABLE NXCALS_JAVA_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) -execute_process(COMMAND $ENV{SHELL} -c "${NXCALS_LS_COMMAND} ${EOS_PATH_NXCALS_DEV}/${PATTERN_NXCALS_PYTHON}* | grep -Eo \'${NXCALS_VERSION_MATCH}\'" OUTPUT_VARIABLE NXCALS_PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND $ENV{SHELL} -c "${NXCALS_LS_COMMAND} ${EOS_PATH_NXCALS_DEV} | grep -v '\.sys\.' | grep ${PATTERN_NXCALS_JAVA} | grep -Eo \'${NXCALS_VERSION_MATCH}\'" OUTPUT_VARIABLE NXCALS_JAVA_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND $ENV{SHELL} -c "${NXCALS_LS_COMMAND} ${EOS_PATH_NXCALS_DEV} | grep -v '\.sys\.' | grep ${PATTERN_NXCALS_PYTHON} | grep -Eo \'${NXCALS_VERSION_MATCH}\'" OUTPUT_VARIABLE NXCALS_PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) MESSAGE(STATUS "Content of NXCals folder is\n********\n${NXCALS_CONTENT}\n********") MESSAGE(STATUS "And we grepped the versions\n********\ndata-access-libs ${NXCALS_JAVA_VERSION}\nextraction-api: ${NXCALS_PYTHON_VERSION}\n********")