Rename deadlines

This commit is contained in:
Tim Schubert 2018-06-06 17:20:21 +02:00
parent 378e469859
commit cb4e98ac04

13
deadline.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -eu
read -p "Enter a name for the exercise (used for tag name): " exercise_name
read -p "Are you sure you want to create a new tag? This will cause a new tag to be created in each student project and run JPlag on the solutions. [N/y]: " cont
if [ ${cont} == 'y' ] || [ ${cont} == 'Y' ]
then
git tag "${exercise_name}"
git push --tag
fi