From fdab8f009d2762dbd89b0265681a51e3f9d74a0f Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 21 Oct 2019 17:02:18 +0200 Subject: [PATCH] Add script to create assignment archive --- create_archive.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 create_archive.sh diff --git a/create_archive.sh b/create_archive.sh new file mode 100755 index 0000000..55d6a95 --- /dev/null +++ b/create_archive.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +topic='SEC_BUF_OVL' +name='valentin_brandl' + +if [ -z "${1}" ] +then + echo "Usage: ${0} " + exit 1 +else + num="${1}" +fi + +file_name="${topic}_${name}_abgabe0${num}" + +git archive HEAD --prefix "${file_name}/" -o "../${file_name}.zip"