]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/scripts/insert.awk
ocaml 3.09 transition
[helm.git] / helm / matita / scripts / insert.awk
index 267e893e2b967aa1a301179753af6ba8d0da2ac1..d62a6a3ecdc2aef395833e1a6a04dc068c017288 100644 (file)
@@ -1,18 +1,17 @@
-
-
-/^[^#]/ {
-       result=tolower($1);
-       if( $2 ~ "\.opt$" )
+ {
+       result=tolower($3);
+       if( $1 ~ ".opt$" )
                compilation="opt"
        else
                compilation="byte"
-       test=$3 
-       time="0:" $4
+       test=$2 
+       time=$4
+       timeuser=$5
        mark=$7
-       if ( $8 ~ "^GC=off$") 
-               options="'no-gc'"
-       else
-               options="''"
+       if ( $8 ~ "^gc-off$") 
+               options="'gc-off'";
+       if ( $8 ~ "^gc-on$") 
+               options="'gc-on'"
                
-       printf "INSERT bench (result, compilation, test, time, mark, options) VALUES ('%s', '%s', '%s', '%s', '%s', %s);\n", result, compilation, test, time, mark, options;
+       printf "INSERT bench (result, compilation, test, time, timeuser, mark, options) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', %s);\n", result, compilation, test, time, timeuser, mark, options;
        }