Add script to create assignment archive
This commit is contained in:
parent
67b68a5bef
commit
fdab8f009d
16
create_archive.sh
Executable file
16
create_archive.sh
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user