auto.sh 957 B
#this is a file to convert .md to .html
echo "starting the conversion"
pandoc -s -t html -c styles.css index.md -o index.html
pandoc -s -t html 3dprinting-scanning.md -o 3dprinting-scanning.html
pandoc -s -t html code.md -o code.html
pandoc -s -t html electronic-production.md -o electronic-production.html
pandoc -s -t html final-project.md -o final-project.html
pandoc -s -t html vinyl.md -o vinyl.html
pandoc -s -t html linux.md -o linux.html
pandoc -s -t html shopbot.md -o shopbot.html
echo "all the files converted to HTML"
if [ "$#" -gt 0 ]
# if there is something typed after bash auto.sh it will go into this loop
then
cd ..
cd ..
git pull
git add .
git commit -m "$*"
# the push file comment will be the same exact words you typed after bash auto.sh
git pull && git push
# to pull and push at the same time, just in case someone has pushed
else
echo "Not uploading (empty commit messsage, type something next to bash auto.sh )"
fi