From ff03dafbae6f53027a1e79e1a60678afc31ebbdf Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 20 Dec 2024 07:32:59 +0100 Subject: Add 2024 day 20 solutions --- Makefiles/py.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefiles') diff --git a/Makefiles/py.mk b/Makefiles/py.mk index e32992b..541f6f0 100644 --- a/Makefiles/py.mk +++ b/Makefiles/py.mk @@ -1,9 +1,13 @@ .POSIX: all: - sed '/START PART 2/,/END PART 2/d' puzzles.py >puzzle-1.py - sed '/START PART 1/,/END PART 1/d' puzzles.py >puzzle-2.py + sed -e '/START PART 2/,/END PART 2/d' \ + -e '1aPUZZLE_PART = 1' \ + puzzles.py >puzzle-1.py + sed -e '/START PART 1/,/END PART 1/d' \ + -e '1aPUZZLE_PART = 2' \ + puzzles.py >puzzle-2.py chmod +x puzzle-[12].py clean: - rm -f puzzle-[12].py + rm -f puzzle-[12].py \ No newline at end of file -- cgit v1.2.3