Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
project description: show me the ns-3 version
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 28 Sep 2020 22:26:29 +0000 (00:26 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 28 Sep 2020 22:26:29 +0000 (00:26 +0200)
tools/jenkins/project_description.sh

index 90880da..1a26764 100755 (executable)
@@ -22,12 +22,13 @@ get_cmake(){
 }
 
 get_ns3(){
-  found=$(grep -c "ns-3 found" ./consoleText)
-  if [ "$found" != 0 ]; then
-    echo "✔"
-  else
-    echo ""
-  fi
+  grep -m 1 "ns-3 found (v3.[0-9]*; incl:"|sed "s/.*-- ns-3 found .v\(3.[0-9]*\); incl:.*/\1/g"
+#  found=$(grep -c "ns-3 found" ./consoleText)
+#  if [ "$found" != 0 ]; then
+#    echo "✔"
+#  else
+#    echo ""
+#  fi
 }
 
 get_python(){