WeBWorK Main Forum

import/export between 2.10 to 2.11

Re: import/export between 2.10 to 2.11

by Andras Balogh -
Number of replies: 0
Thanks. It is good to know.
We had about 100 set definition files, so I ended up using these lines at the command prompt. Maybe some one else can also use these:

sed -i '/assignmentType/d' *.def
sed -i '/reducedScoringDate/d' *.def
sed -i '/enableReducedScoring/d' *.def
sed -i '/restrictProbProgression/d' *.def
sed -i '/emailInstructor/d' *.def
sed -i '/^$/d' *.def
sed -i 's/problemListV2/problemList = /g' *.def
sed -i '/problem_start/d' *.def
sed -i '/problem_id/d' *.def
sed -i 's/source_file = //g' *.def
sed -i '/value =/d' *.def
sed -i '/max_attempts/d' *.def
sed -i '/showMeAnother/d' *.def
sed -i '/counts_parent_grade/d' *.def
sed -i '/att_to_open_children/d' *.def
sed -i '/problem_end/d' *.def
sed -i 's/.pg/.pg, 1, -1/g' *.def

The last command also changes the lines of specific (non-default) header files. We only had a few of those.