Preparing Submissions
$ prepare [-h] [student]
Arguments:
-h, --help: Show help messagestudent: Student ID (all students if not specified)
The specified files / folders are imported over from src_dir into the
student directories in candidates/. The default behaviour is to copy
(recursively) all files and folders listed. To change this, look at the
configuration options below.
All the code in the student directories is then compiled if needed.
Configuration Options
The following specifies which files/directories to import from
src_dirinto student directories:
imports:
- <file 1>
- <file 2>
- <directory 1>
The following command specifies how to import the files from
src_dir. By default, this has the value ofcp -rf, but other options this can be changed to areln -s(to soft-link),ln(to hard link), etc.
import_command: <command with flags>
Note
This command is run once for each file/folder listed in the imports fields. For instance, with:
import_command: ln -s
imports:
- file0
- folder1
the marker will run the following for each student:
ln -s src_dir/file0 assgn_dir/candidates/student/
ln -s src_dir/folder1 assgn_dir/candidates/student/
The following define the command for compilation, and the file to store the command output in. If the compile command is explicitly set to
null, there are no compile logs are created.
compile: <command>
compile_log: <filename>