WeBWorK Main Forum

modelCourse updates

modelCourse updates

by Lars Jensen -
Number of replies: 1
Hi Everyone,

Is courses/modelCourse supposed to be updated by svn? If so, do I just copy the .svn directory from courses.dist/modelCourse over to courses/modelCourse? 

If not, how is courses/modelCourse kept up-to-date? (I think my modelCourse is old and hasn't been updated for quite a while).

In reply to Lars Jensen

Re: modelCourse updates

by Arnold Pizer -
Hi Lars,

No, courses/modelCourse is not updated using svn.

First check to see if your model course needs to be updated.  Use svn to update/opt/webwork/webwork2/courses.dist/ 

Then  cd /opt/webwork/webwork2/courses.dist/ and run
diff -r modelCourse/ /opt/webwork/courses/modelCourse/

This will show all differences between your courses/modelCourse and 
courses.dist/modelCourse.  If there are only minor updates you can make them by hand.  If there are major changes and you want to start over, do the following:

cd /opt/webwork/webwork2/courses/
mv modelCourse modelCourse.old

Then follow the relevant instructions in 
$ cd /opt/webwork/webwork2/courses.dist
$ cp *.lst /opt/webwork/courses/
$ rsync -a --exclude '.svn' modelCourse /opt/webwork/courses/
to create the new modelCourse. 

Also see 

Hope this helps.