Commit b34d3470 authored by Olivier's avatar Olivier
Browse files

Prep scripts: better import of input files

parent ae4df3ae
......@@ -20,7 +20,7 @@ mv -vf $inputbackupname archives/
# Import output of M9 and M6 into input of M10
rsync -avh --delete ../M9_collect_graded/pdfs/ $inputfolder/pdfs/
rsync -avh --delete ../M9_collect_completed_grading/pdfs/ $inputfolder/pdfs/
rsync -avh --delete ../M6_match_peers/script_output/peers.csv $inputfolder/
# Clear output folder
......
......@@ -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/*
......
......@@ -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."
......@@ -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/
......
......@@ -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/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment