Sample =.submitrc

The following are contents of a sample .submitrc file:

submit_version=2

# Account information
homeac="cs125"
testac="cs125t"

# Directories and administrative lists
coursedir="/u/$homeac/course/"
handindir="/u/$homeac/handin/"
latedir=".lates/"
listdir="$coursedir"

ontimelist="ontime.temp"
hidelist="handin_hide.lst"
fixedlist="ontime.perm"
latelist="late"
nonelist="none"
sublist=".subfiles"
message=".message"
dirlist=".subdirs"
classlist="/u/$homeac/.classlist"

# Course policies
merge="no"
maxlates="0"
file_filter=/u/isg/bin/file_filter
course_filter=/u/isg/bin/submit/submit_pub_test_and_subversion_hook

The only edits needed should be at the start and end of the file.

The homeac should be set to the course account's name. The value of testac is typically =homeac=t; that is, the course account's name with the letter t appended to it; this is what will be the standard testing account name as of Spring 2010.

All of the variables in the middle refer to standardized locations of all of these directories/files.

The final variables configure submit's behaviour. The value of merge should be no if ISG's SubmitFileFilter is being used to ensure it works correctly; this is also what the expected behaviour arguably would be via Odyssey, where students expect the submitted files to exactly mirror the contents of a hardcoded directory on their student.cs accounts.

The maxlates variable determines how many lates will be allowed by submit's late mechanism. This is not relevant for courses using a slip days system, or for courses using makelateclone.

The file_filter variable controls rejection of particular files along with an explanation. Using ISG's SubmitFileFilter is recommended.

The final option, course_filter, is used to apply behaviour after all files have been submitted. In the example above, this is a utility that logs a public test request and maintains a subversion log of each student's submissions.

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2018-09-05 - YiLee
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback