From b776b8a39ee8567738eb8c453d9a812560909f83 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 29 Sep 2020 00:26:29 +0200 Subject: [PATCH] project description: show me the ns-3 version --- tools/jenkins/project_description.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/jenkins/project_description.sh b/tools/jenkins/project_description.sh index 90880da18d..1a26764b08 100755 --- a/tools/jenkins/project_description.sh +++ b/tools/jenkins/project_description.sh @@ -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(){ -- 2.20.1