aboutsummaryrefslogtreecommitdiff
path: root/2024/init.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-12-01 09:40:19 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-12-01 09:40:19 +0100
commit0aefd410a18acf826af5187cdb038fd9b4f25fc5 (patch)
treef24d69d83567079412924bf6ce06e058673171b7 /2024/init.sh
parent6c5fe99d41a3d63975deb08911ebb0e162684a43 (diff)
downloadaoc-0aefd410a18acf826af5187cdb038fd9b4f25fc5.tar.gz
aoc-0aefd410a18acf826af5187cdb038fd9b4f25fc5.zip
Started 2024 + day 1
Diffstat (limited to '2024/init.sh')
-rwxr-xr-x2024/init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/2024/init.sh b/2024/init.sh
new file mode 100755
index 0000000..1028c3a
--- /dev/null
+++ b/2024/init.sh
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3nn="$(printf '%02d' $1)"
4mkdir -p $nn
5sed "s/DAY/$nn/g" template.make > $nn/Makefile
6cp template.cpp $nn/day${nn}a.cpp
7cp template.cpp $nn/day${nn}b.cpp

Generated with cgit - Back to sebastiano.tronto.net