Skip to content
Snippets Groups Projects
Commit cb6952a2 authored by Goik Martin's avatar Goik Martin
Browse files

Improved username handling

parent 17c8376e
Branches
No related tags found
No related merge requests found
#!/bin/bash
# The original examination project skeleton
PROJECTREF=~/GoikLectures/Klausuren/Sd1/2019summer/Exam
PROJECTREF=~/Projects/Exam/Sd1/2022Winter/Exam
# File representative of archive integrity
SRCREPRESENT=src/main/java/de/hdm_stuttgart/mi/sd1/task2/ChangeAmount.java
SRCREPRESENT=src/main/java/de/hdm_stuttgart/mi/sd1/task1/B_Backup.java
# The executable jar archive containing unit tests
TESTJAR=sd1_2019summer_exam-0.9-fat-tests.jar
TESTJAR=sd1_2022winter_exam-0.9-fat-tests.jar
# Strings like e.g. "Aufgabe 2" referencing "Aufgabe 2: (30/50)"
declare -a MARKERS=("Task 1" "Task 2")
......@@ -78,14 +78,28 @@ evaluateProject() {
echo "-----------------------------------------------------"
uid=`echo $1| sed -e s/.zip//`
grep $uid ~/C/HdM/tmp/bonusprojekte.csv
grep $uid ~/C/HdM/Auswertung/bonus.txt
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++"
}
for zip in "$@"
do
evaluateProject $zip
done
ZIPFILECOUNT=`ls *.zip 2> /dev/null|wc -w`
if [ $ZIPFILECOUNT -ne 1 ]; then
echo There are $ZIPFILECOUNT zip-files, should be 1, exiting
exit
fi
echo basename $1
#ILIASFILEBASENAME=`basename $1 .zip`
#echo $ILIASFILEBASENAME
mv *.zip $1.zip
#for zip in "$@"
#do
evaluateProject $1.zip
#done
#end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment