ProjectEuler/C/scripts/archive.sh
sigonasr2 9f3ef6f8fa Complete #14
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2022-07-17 14:27:46 -05:00

12 lines
282 B
Bash
Executable File

#Archives the current project under the applicable program name.
#C
if [[ "$#" -gt 1 ]];
then
mkdir archives/$1
cp -R src current archives/$1
./sig commit "${*:2}"
cat template > src/main.c
else
echo "Usage: "
echo " ./sig archive <problem> <commit msg>"
fi