Add script to create assignment archive

This commit is contained in:
Valentin Brandl 2019-10-21 17:02:18 +02:00
parent 67b68a5bef
commit fdab8f009d
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

16
create_archive.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env sh
topic='SEC_BUF_OVL'
name='valentin_brandl'
if [ -z "${1}" ]
then
echo "Usage: ${0} <num>"
exit 1
else
num="${1}"
fi
file_name="${topic}_${name}_abgabe0${num}"
git archive HEAD --prefix "${file_name}/" -o "../${file_name}.zip"