add day 2 results

This commit is contained in:
RussellChamp committed 2021-12-03 11:56:22 -05:00
1 parent 92dd557177
commit 73933e8e39
5 files changed
+145 -2

No files matched your search

+5 -2
View File
@@ -1,8 +1,11 @@
default: build day=1
default:
# This is my 2021 Advent of Code project
init:
mkdir day-$(day); sed 's/#DAY#/$(day)/g' main.go.template | sed 's/#TITLE#/$(title)/g' > day-$(day)/main.go; touch day-$(day)/input.txt
mkdir day-$(day)
sed 's/#DAY#/$(day)/g' main.go.template | sed 's/#TITLE#/$(title)/g' > day-$(day)/main.go
sed 's/#DAY#/$(day)/g' main_test.go.template > day-$(day)/main_test.go
touch day-$(day)/input.txt;
build:
cd day-$(day); go run .