aboutsummaryrefslogtreecommitdiff
path: root/day23/part2
blob: 634d447bbd5b27a34528babc7c7676f9695817b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [[ $(basename $(pwd)) != 'day23' ]] ; then
  cd day23
fi

file=$(mktemp --tmpdir=. --suffix=.c)

trap "rm $file a.out" EXIT

./part2gen > $file
gcc -O3 $file
./a.out