Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier
Peer-graded student exercises
Commits
b34d3470
Commit
b34d3470
authored
Aug 16, 2019
by
Olivier
Browse files
Prep scripts: better import of input files
parent
ae4df3ae
Changes
5
Hide whitespace changes
Inline
Side-by-side
M10_process_grades/prepare_M10.sh
View file @
b34d3470
...
...
@@ -20,7 +20,7 @@ mv -vf $inputbackupname archives/
# Import output of M9 and M6 into input of M10
rsync
-avh
--delete
../M9_collect_grad
ed
/pdfs/
$inputfolder
/pdfs/
rsync
-avh
--delete
../M9_collect_
completed_
grad
ing
/pdfs/
$inputfolder
/pdfs/
rsync
-avh
--delete
../M6_match_peers/script_output/peers.csv
$inputfolder
/
# Clear output folder
...
...
M11_generate_graded/prepare_M11.sh
View file @
b34d3470
...
...
@@ -16,9 +16,11 @@ tar -chvf $inputbackupname --exclude=old $inputfolder
mv
-vf
$inputbackupname
archives/
# Import output of M3 into input of M11 (only those files matching solution_graded* )
rsync
-avh
--delete
--delete-excluded
--prune-empty-dirs
--include
=
"*/"
--include
=
"solution_graded*"
--exclude
=
"*"
../M3_generate_assignments/script_output/
$inputfolder
/solutions/
# Import output of M3 and M5 into input of M11
rsync
-avh
--delete
../M5_collect_submissions/pdfs/
$inputfolder
/submissions/
rsync
-avh
--delete
../M3_generate_assignments/script_output/solution
*
$inputfolder
/solutions/
# Clear output folder
rm
-rvf
$outputfolder
/
*
...
...
M2_customize_assignments/prepare_M2.sh
View file @
b34d3470
...
...
@@ -19,7 +19,7 @@ mv -vf $inputbackupname archives/
# Clear output folder
rm
-rvf
$outputfolder
/
*
# Import any PNG from input into output
rsync
-avh
--delete
$inputfolder
/
*
.png
$outputfolder
/
# Import any PNG from input
root folder
into output
rsync
-avh
--delete
--delete-excluded
--prune-empty-dirs
--include
=
"*/"
--exclude
=
"*/*"
--include
=
"*.png"
--exclude
=
"*"
$inputfolder
/
$outputfolder
/
echo
"end of script."
M6_match_peers/prepare_M6.sh
View file @
b34d3470
...
...
@@ -25,6 +25,7 @@ mkdir -pv $outputfolder/pdfs
# Import output of M5 into input of M6
rsync
-avh
--delete
../M5_collect_submissions/pdfs/
$inputfolder
/pdfs/
# Import list of assignments (output of M2) into input of M6
rsync
-avh
../M2_customize_assignments/script_output/output_assignments.csv
$inputfolder
/
...
...
M7_generate_grading/prepare_M7.sh
View file @
b34d3470
...
...
@@ -16,10 +16,8 @@ tar -chvf $inputbackupname --exclude=old $inputfolder
mv
-vf
$inputbackupname
archives/
# Import output of M3 into input of M7
# Folder must be cleared manually, because wildcard matching for rsync prevents deletion of surrogates
rm
-rvf
$inputfolder
/solutions/
*
rsync
-avh
--delete
../M3_generate_assignments/script_output/solution
*
$inputfolder
/solutions/
# Import output of M3 into input of M7 (only those files matching solution_grading* )
rsync
-avh
--delete
--delete-excluded
--prune-empty-dirs
--include
=
"*/"
--include
=
"solution_grading*"
--exclude
=
"*"
../M3_generate_assignments/script_output/
$inputfolder
/solutions/
# Import output of M5 into input of M7
rsync
-avh
--delete
../M6_match_peers/script_output/pdfs/
$inputfolder
/submissions/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment