Script to run all days at once.

This commit is contained in:
Bert Peters
2015-12-09 11:29:42 +01:00
parent 1178d7eac1
commit d831ce32cc

24
runall.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
rundir()
{
if hash pypy &> /dev/null; then
python=pypy
else
python=python
fi
input=""
if [ -f $1/input.txt ]; then
input="$1/input.txt"
fi
for i in $1/*.py; do
echo "$i" "$input"
$python "$i" "$input"
done
}
for i in day-*; do
rundir $i
done