--- /dev/null
+#!/bin/bash
+
+# N counts the number of samples generated so far. We do 20 samples in
+# each iteration and we already have 20 from the test run. Maximale
+# sample number is 300.
+
+for N in `seq 10 10 300`
+do
+ # Run experiment
+ echo > DATA.degrees.$N
+ for I in `seq 5 5 80`
+ do
+ ./test.native --factors --size $I --times 10 \
+ >> DATA.degrees.$N
+ done
+
+ # Clean up results
+ echo 'let data = [' \
+ > dataDEGREES.ml
+
+ cat DATA.* \
+ | sed 's/[a-z =]//g' \
+ | cut -d, -f1,3,5 \
+ | sed 's/\.$/;/' \
+ >> dataDEGREES.ml
+
+ echo ']' \
+ >> dataDEGREES.ml
+
+ # Generate an deploy HTML
+ ocaml makeHTMLdegrees.ml --samples $N \
+ > BareissTMP.html
+
+ scp Bareiss*.html jmiddeke@www:/home/www/people/jmiddeke/
+done
+