Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
replace ticks by version of python in project description when python is used for...
authorAugustin Degomme <adegomme@gmail.com>
Thu, 28 Nov 2019 09:31:33 +0000 (10:31 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Thu, 28 Nov 2019 09:32:33 +0000 (10:32 +0100)
tools/jenkins/project_description.sh

index 3570212..17c40c7 100755 (executable)
@@ -33,7 +33,7 @@ get_ns3(){
 get_python(){
   found=$(grep -c "Compile Python bindings .....: ON" ./consoleText)
   if [ $found != 0 ]; then
-    echo "✔"
+    grep -m 1 "Found PythonInterp" ./consoleText| sed "s/.*-- Found PythonInterp.*found suitable version \"\([a-zA-Z0-9\.]*\)\",.*/\1/g"
   else
     echo ""
   fi