File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,9 @@ Cargo.lock
4141
4242main1
4343main2
44+
45+ * /* /input1
46+ * /* /input2
47+ * /* /assignment
48+ * /* /output1
49+ * /* /output2
Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ DAY="$2"
77mkdir -p " $YEAR /$DAY "
88cd " $YEAR /$DAY " || exit
99
10- touch output1 output2
11-
1210if [ ! -f main1.go ]; then cp ../../go.template main1.go; fi
1311if [ ! -f main2.go ]; then cp ../../go.template main2.go; fi
1412
1513if [ ! -f Makefile ]; then cat > Makefile << EOF
14+ download:
15+ http "https://adventofcode.com/$YEAR /day/$DAY /input" "Cookie:session=$AOC_SESSION ;" >input
16+
1617main1:
17- go build -o main1 main1.go common.go
18+ go build -o main1 main1.go
1819
1920main2:
20- go build -o main2 main2.go common.go
21+ go build -o main2 main2.go
2122
2223.PHONY: run1 run2 clean
2324
@@ -28,15 +29,10 @@ run2: main2
2829 ./main2 <input
2930
3031clean:
31- rm -f main1 main2
32+ rm -f main1 main2 input
3233
3334EOF
3435fi
3536
3637# download input files
3738http " https://adventofcode.com/$YEAR /day/$DAY /input" " Cookie:session=$AOC_SESSION ;" > input
38-
39- # download assignment
40- http " https://adventofcode.com/$YEAR /day/$DAY " " Cookie:session=$AOC_SESSION ;" | pup ' article.day-desc' > tmp.html
41- lynx -dump tmp.html -width 80 > assignment
42- rm -f tmp.html
You can’t perform that action at this time.
0 commit comments