Skip to content

Commit

Permalink
- try echo 0 not 0.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25134 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 18, 2015
1 parent 514d1ee commit 466d772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/PlotLibraryTrend.sh
Expand Up @@ -22,7 +22,7 @@ fi
GOAL=`grep -H "Simulation Results:" "$HISTORY/${LIB}"-*.html | tail -n1 | grep -o "[0-9][0-9]*/[0-9][0-9]*" | sed s,.*/,,`
CURS=`grep -H "Simulation Results:" "$HISTORY/${LIB}"-*.html | tail -n1 | grep -o "[0-9][0-9]*/[0-9][0-9]*" | sed s,/.*,,`
CURC=`grep -H "BuildModel Results:" "$HISTORY/${LIB}"-*.html | tail -n1 | grep -o "[0-9][0-9]*/[0-9][0-9]*" | sed s,/.*,,`
CURV=`(grep -H "Verified Results:" "$HISTORY/${LIB}"-*.html | tail -n1 | grep -o "[0-9][0-9]*/[0-9][0-9]*" | sed s,/.*,, ) || 0`
CURV=`(grep -H "Verified Results:" "$HISTORY/${LIB}"-*.html | tail -n1 | grep -o "[0-9][0-9]*/[0-9][0-9]*" | sed s,/.*,, ) || echo 0`
cat > "$HISTORY/${LIB}-trend.gnuplot" <<EOF
set term png
set datafile separator ","
Expand Down Expand Up @@ -88,7 +88,7 @@ for f in `grep -H "Simulation Results:" "$HISTORY/${LIB}"-*.html | cut -d: -f1`
BUILD=`grep "BuildModel Results:" "$f" | cut -d: -f2 | cut -d/ -f1 | tr -d \ `
SIM=`grep "Simulation Results:" "$f" | cut -d: -f2`
SIMSUC=`echo "$SIM" | cut -d/ -f1`
VER=`(grep "Verified Results:" "$f" | cut -d: -f2 | cut -d/ -f1 | tr -d) || 0`
VER=`(grep "Verified Results:" "$f" | cut -d: -f2 | cut -d/ -f1 | tr -d) || echo 0`
TOT=`echo "$SIM" | cut -d/ -f2 | cut -d" " -f1`
REV=`grep -o "[(]r[0-9]*" "$f" | tr -d "("`
echo "$DATE,$TOT,$BUILD,$SIMSUC,$VER" >> "$HISTORY/${LIB}-trend.csv"
Expand Down

0 comments on commit 466d772

Please sign in to comment.