diff options
Diffstat (limited to '2024/init.sh')
| -rwxr-xr-x | 2024/init.sh | 7 |
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 | |||
| 3 | nn="$(printf '%02d' $1)" | ||
| 4 | mkdir -p $nn | ||
| 5 | sed "s/DAY/$nn/g" template.make > $nn/Makefile | ||
| 6 | cp template.cpp $nn/day${nn}a.cpp | ||
| 7 | cp template.cpp $nn/day${nn}b.cpp | ||
