aoc_omni/ruby/bin/run

15 lines
286 B
Plaintext
Raw Normal View History

2023-12-19 16:37:08 -05:00
#!/usr/bin/env bash
year=$1
day=$2
2024-12-27 12:19:28 -05:00
mkdir -p $year/$day
2025-11-30 21:09:48 -05:00
source_file=$(ls $year/$day/bin/problem)
2024-12-27 12:19:28 -05:00
if [[ -z $source_file ]] ; then
echo "No ruby source file found in $year/$day"
exit 1
fi
2025-12-06 10:19:08 -05:00
time (cat ../data/$year/$day/input.txt | ruby -I$year/$day/lib -I$year/lib $source_file)