aoc2023/run

23 lines
261 B
Plaintext
Raw Normal View History

2023-12-02 17:34:17 +04:00
#!/usr/bin/sh
DAY=1
if [ -n "$1" ]; then
DAY=$1
fi
PART=1
if [ -n "$2" ]; then
PART=$2
fi
INPUT=my
if [ -n "$3" ]; then
INPUT=$3
fi
mkdir -p bin
set -e
echo -n "Day $DAY part $PART with '$INPUT' input: "
bin/day${DAY}p$PART < day$DAY/in.$INPUT