Initial commit

This commit is contained in:
Joe Tretter
2020-09-03 23:53:28 -05:00
commit ebb7ebb4b5
98 changed files with 2118 additions and 0 deletions

31
A_PrepareWork.sh Executable file
View File

@@ -0,0 +1,31 @@
#~/bin/bash
#set -x
lesson=$1
echo Processing $lesson
if [ ! -d "${lesson}" ]
then echo "Invalid lesson."
exit 1
fi
rm -rf 5_work 9_goal
mkdir 5_work
cd 5_work
cp -ar "../${lesson}/0_repository" .repository1
git init
git remote add origin .repository1/
git fetch
git switch master
cd ..
cp -ar "${lesson}/1_overlay/"* 5_work
cd -
"../${lesson}/3_workprep.sh"
cd ..
cp -ar 5_work 9_goal
cd 9_goal
"../${lesson}/5_solution.sh"