WeBWorK Main Forum

modelCourse updates

Re: modelCourse updates

by Arnold Pizer -
Number of replies: 0
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 
http://webwork.maa.org/wiki/Installation_Manual_for_2.5_on_Ubuntu_10.04#Move_the_System_into_the_Required_Directories
(i.e. 
$ cd /opt/webwork/webwork2/courses.dist
$ cp *.lst /opt/webwork/courses/
$ rsync -a --exclude '.svn' modelCourse /opt/webwork/courses/
and
http://webwork.maa.org/wiki/Installation_Manual_for_2.5_on_Ubuntu_10.04#Setting_Permissions
to create the new modelCourse. 

Also see 
http://webwork.maa.org/wiki/Upgrading_WeBWorK#Check_for_updates_to_courses.dist

Hope this helps.

Arnie