Skip to content
Snippets Groups Projects
Commit a757b12f authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

remove setupDeck shell script

parent 3be80539
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
helpFunction()
{
echo ""
echo "Usage: $0 -y datePresentation -n namePresentation"
echo -e "\t-a Date of the presentation (Format: YYYY-MM-DD)"
echo -e "\t-b Name of the presentation"
exit 1 # Exit script after printing help
}
while getopts "y:n:" opt
do
case "$opt" in
y ) datePres="$OPTARG" ;;
n ) namePres="$OPTARG" ;;
? ) helpFunction ;; # Print helpFunction in case parameter is non-existent
esac
done
# Print helpFunction in case parameters are empty
if [ -z "$datePres" ] || [ -z "$namePres" ]
then
echo "Some or all of the parameters are empty";
helpFunction
fi
yearPres=${datePres:0:4}
echo "Setting up a new slide deck"
echo "----------------------------"
echo " + Year: $yearPres"
echo " + Date: $datePres"
echo " + Name: $namePres"
# checkout a new branch
#git checkout develop
#git pull origin develop
#git checkout -b newBranch
# copy the template
cp -r ./template "./$yearPres/$namePres"
# print out a success message
echo " > The slide deck has been created in ./$yearPres/$namePres"
echo "----------------------------"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment