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

Examination related scripts

parent 66df406c
No related branches found
No related tags found
No related merge requests found
1. Marker String in:
noten.sh
void de.hdm_stuttgart.mi.bitte_ignorieren.eval.ReachedPoints.showResults()
2. in move.sh variable destdir
#!/bin/bash
rm -rf ~/newUsers.txt
for zip in $( ls *.zip); do
fbname=$(basename "$zip" .zip)
destuser=~/ownCloud/Fh/KlausurBewertung/$fbname
if [ -d "$destuser" ]
then
echo "$destuser exists"
else
echo "$destuser does not exist"
echo $fbname >> ~/newUsers.txt
fi
# destdir=$destuser/Sda1/SoSe2015
destdir=$destuser/Se1/SoSe2015
mkdir -p $destdir
mv $fbname.zip $destdir
# mv Unpack/$fbname/* $destdir
done
#end
#!/bin/bash
# TODO: devine marker string variable
# TODO: show non-compiling projects in logfile
#rm -rf Unpack
mkdir -p Unpack
rm -f ~/results.log
for zip in $( ls *.zip); do
fbname=$(basename "$zip" .zip)
echo $fbname
pushd Unpack
unzip ../$fbname.zip
rm -rf RemoteSystemsTempFiles
nodeCount=`ls|wc -l`
dirCount=`ls -l|grep ^d|wc -l`
if [[ 1 = $nodeCount && 1 = $dirCount ]]; then
echo "Found exactly one directory component"
mv * project
if [ -f project/pom.xml ]; then
echo "found pom.xml"
cd project
mvn clean eclipse:clean; rm -rf .settings/ A1.log
rm -rf pom.xml src/test/java
tar zxf ~/solutionTest.tgz
mvn -Dmaven.test.skip=true package
reachedPoints=`java -jar target/sw1klausur-0.9.jar|grep myGoikKlausurMarkeri| sed -e s/myGoikKlausurMarkeri://`
echo "$fbname $reachedPoints" >> ~/results.log
else
echo "$fbname : No pom.xml found in project" >> ~/results.log
fi
else
echo "$fbname : Found more than one directory component" >> ~/results.log
fi
popd
rm -rf Unpack/*
done
#end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment