From 378e46985938a77b54f202eb8a7ad78ce70d8266 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 6 Jun 2018 15:43:58 +0200 Subject: [PATCH] Add script for interactively triggering a deadlines --- deadlines.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 deadlines.sh diff --git a/deadlines.sh b/deadlines.sh new file mode 100755 index 0000000..65d6ff1 --- /dev/null +++ b/deadlines.sh @@ -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