online_ide: imports nitc (symlinked from contrib)
[nit.git] / benchmarks / markdown / bench_markdown.sh
index 7893fa8..485b944 100755 (executable)
@@ -27,14 +27,6 @@ count=2
 # Default number of times the input file is transformed during a single run
 s=200
 
-### HELPER FUNCTIONS ##
-
-function die()
-{
-       echo >&2 "error: $*"
-       died=1
-}
-
 ## HANDLE OPTIONS ##
 
 function usage()
@@ -78,6 +70,8 @@ outdir="./out"
 engdir="./engines"
 bncdir="./benches/out"
 mkdir -p $outdir
+html="index.html"
+echo >"$html" "<html><head></head><body>"
 
 function bench_nitmd()
 {
@@ -143,6 +137,8 @@ if test "$#" -gt 0; then
     plot $outdir/bench_markdown.gnu
 fi
 
+echo >>"$html" "</body></html>"
+
 if test -n "$died"; then
        echo "Some commands failed"
        exit 1