Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
4c858a5b
Commit
4c858a5b
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Examination related scripts
parent
66df406c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AuswertungKlausur/Readme.txt
+5
-0
5 additions, 0 deletions
AuswertungKlausur/Readme.txt
AuswertungKlausur/move.sh
+26
-0
26 additions, 0 deletions
AuswertungKlausur/move.sh
AuswertungKlausur/noten.sh
+42
-0
42 additions, 0 deletions
AuswertungKlausur/noten.sh
with
73 additions
and
0 deletions
AuswertungKlausur/Readme.txt
0 → 100644
+
5
−
0
View file @
4c858a5b
1. Marker String in:
noten.sh
void de.hdm_stuttgart.mi.bitte_ignorieren.eval.ReachedPoints.showResults()
2. in move.sh variable destdir
This diff is collapsed.
Click to expand it.
AuswertungKlausur/move.sh
0 → 100755
+
26
−
0
View file @
4c858a5b
#!/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
This diff is collapsed.
Click to expand it.
AuswertungKlausur/noten.sh
0 → 100755
+
42
−
0
View file @
4c858a5b
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment