mirror of
https://github.com/ZeusWPI/Advent-of-Code-Aggregator.git
synced 2024-11-21 14:41:10 +01:00
update benchmark script
This commit is contained in:
parent
aeb63e2f5d
commit
6c6dfac1b6
2 changed files with 8 additions and 2 deletions
1
2023/.gitignore
vendored
Normal file
1
2023/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
inputs
|
|
@ -1,8 +1,13 @@
|
|||
#!/bin/sh
|
||||
day="$(printf '%02d' ${1##0})"
|
||||
part="$2"
|
||||
inputfile="$3"
|
||||
|
||||
inputfile="$PWD/francis-punt/${day}_input.txt"
|
||||
case "$inputfile" in
|
||||
"") inputfile="$PWD/francis-punt/${day}_input.txt";;
|
||||
/*) ;;
|
||||
*) inputfile="$PWD/$inputfile";;
|
||||
esac
|
||||
|
||||
if ! test -f "$inputfile"; then
|
||||
echo "no input available" >&2
|
||||
|
@ -14,7 +19,7 @@ for dir in *; do
|
|||
cd "$dir"
|
||||
if test -x ./prepare; then
|
||||
echo "---------------------------------------------------------------------------------- $dir"
|
||||
if ! ./prepare "$day" "$part" >&2; then
|
||||
if ! ./prepare "$day" "$part" "$inputfile" >&2; then
|
||||
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
|
||||
else
|
||||
if test -x run; then
|
||||
|
|
Loading…
Reference in a new issue