Files
aoc/initScripts/makefolders.sh
2024-11-09 22:13:14 +01:00

27 lines
444 B
Bash
Executable File

#!/usr/bin/bash
cd ..
read -p "Enter Year to generate:" year
if [ ! -d "${year}" ]
then
mkdir ${year}
fi
cd ${year}
if [ ! -f "helpingFuctions.py" ]
then
cp ../yearTemplate/helpingFunctions.py ./helpingFunctions.py
fi
for i in {00..25}
do
if [ ! -d "day${i}" ]
then
mkdir day${i}
fi
touch ./day${i}/input.day${i}
touch ./day${i}/sample.day${i}
if [ ! -f "day${i}.py" ]
then
cp ../yearTemplate/dayXX.py day${i}.py
fi
done