2020-12-03 17:59:49 +01:00
|
|
|
#!/bin/sh
|
2021-12-09 22:45:10 +01:00
|
|
|
day="$1"
|
2020-12-03 17:59:49 +01:00
|
|
|
part="$2"
|
2021-12-09 22:45:10 +01:00
|
|
|
inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt"
|
2020-12-03 17:59:49 +01:00
|
|
|
|
|
|
|
[ -x "prepare" ] || exit 0
|
|
|
|
|
2020-12-04 17:07:30 +01:00
|
|
|
if ! ./prepare "$day" "$part" "$inputfile"; then
|
|
|
|
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
|
2020-12-10 21:21:46 +01:00
|
|
|
else
|
|
|
|
if [ -x "run" ]; then
|
|
|
|
hyperfine "./run '$day' '$part' '$inputfile'"
|
|
|
|
fi
|
2020-12-04 17:07:30 +01:00
|
|
|
fi
|
|
|
|
|
2020-12-05 15:04:12 +01:00
|
|
|
if [ -x "clean" ]; then
|
|
|
|
./clean
|
|
|
|
fi
|
2020-12-12 00:49:29 +01:00
|
|
|
|
|
|
|
true
|