Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[project-description] Fix extraction of the ns-3 version.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 4 Jul 2022 09:41:06 +0000 (11:41 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 4 Jul 2022 09:41:06 +0000 (11:41 +0200)
[ci-skip]

tools/jenkins/project_description.sh

index eb77ba6..b002915 100755 (executable)
@@ -26,7 +26,7 @@ get_eigen3(){
 }
 
 get_ns3(){
-  grep -m 1 "ns-3 found (v3.[0-9dev]*; incl:" ./consoleText | sed "s/.*-- ns-3 found .v\(3.[0-9dev]*\); incl:.*/\1/g"
+  sed -n 's/.*-- ns-3 found (v\(3[-.0-9a-z]\+\); minor:.*/\1/p;T;q' ./consoleText
 }
 
 get_python(){