init.sh (164B)
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
aocMy solutions for the Advent of Code | |
git clone https://git.tronto.net/aoc | |
Download | Log | Files | Refs | README |
init.sh (164B)
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