[system] / trunk / webwork / system / scripts / course_webwork_setup.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/scripts/course_webwork_setup.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 126 Revision 127
203 { 203 {
204 mkdir('html/tmp/html', 0770); 204 mkdir('html/tmp/html', 0770);
205 chmod(0770, 'html/tmp/html') || die "Can't do chmod on html/tmp/html directory"; 205 chmod(0770, 'html/tmp/html') || die "Can't do chmod on html/tmp/html directory";
206 print 'directory html/tmp/html'.", 0770 created.\n"; 206 print 'directory html/tmp/html'.", 0770 created.\n";
207 } 207 }
208 unless(-e 'courseScripts')
209 {
210 mkdir('courseScripts', 0750);
211 chmod(0750, 'courseScripts') || die "Can't do chmod on courseScripts directory";
212 print 'directory courseScripts'.", 0750 created.\n";
213 }
214 unless(-e 'templates') 208 unless(-e 'templates')
215 { 209 {
216 mkdir('templates', 0770); 210 mkdir('templates', 0770);
217 chmod(0770, 'templates') || die "Can't do chmod on templates directory"; 211 chmod(0770, 'templates') || die "Can't do chmod on templates directory";
218 print 'directory templates'.", 0770 created.\n"; 212 print 'directory templates'.", 0770 created.\n";
477# The email directory contains (templates of) emails which can be sent to everyone 471# The email directory contains (templates of) emails which can be sent to everyone
478# on the classlist. 472# on the classlist.
479 473
480\$emailDirectory = "\${templateDirectory}email/"; 474\$emailDirectory = "\${templateDirectory}email/";
481 475
482# The macros directory contains macros for the problems 476# The macros directory contains macros for the problems files and the
483# files and the problem templates. If it is commented out, the macro files in 477# problem templates. These are usually macro files which are particular to the course.
484# "\${mainDirectory}courseScripts/" are used by default. 478# Macro files are searched for first in the \$macroDirectory and then
479# in the system's courseScript directory. If it is commented out, the macro files are
480# only searched for in the system's courseScript directory.
485 481
486# \$macroDirectory = "\${templateDirectory}macros/"; 482\$macroDirectory = "\${templateDirectory}macros/";
487 483
488# The scoring directory contains files used by the scoring programs. These 484# The scoring directory contains files used by the scoring programs. These
489# files contain scoring information for the whole class and are used for 485# files contain scoring information for the whole class and are used for
490# calculating semester grades, etc. 486# calculating semester grades, etc.
491 487
506 502
507 503
508# This is the temp directory used by downloadPS, etc 504# This is the temp directory used by downloadPS, etc
509 505
510\$courseTempDirectory = "\${classDirectory}html/tmp/"; 506\$courseTempDirectory = "\${classDirectory}html/tmp/";
511
512# The courseScripts directory contains perl scripts local to the course,
513# e.g. displauMacros.pl . If it is commented out, the macro files in
514# "\${mainDirectory}courseScripts/" are used by default.
515
516# \$courseScriptsDirectory = "\${classDirectory}courseScripts/";
517 507
518# This is the URL of the course html directory. It points to the \$htmlDirectory 508# This is the URL of the course html directory. It points to the \$htmlDirectory
519# above and it should have been set up correctly by the course_webwork_setup.pl 509# above and it should have been set up correctly by the course_webwork_setup.pl
520# script. See the documentatiom (run the script or read 510# script. See the documentatiom (run the script or read
521# .../docs/techdescription/settingupcourse.html). Note that the URL depends on 511# .../docs/techdescription/settingupcourse.html). Note that the URL depends on
862 chown(-1, $gid, <html/*>); 852 chown(-1, $gid, <html/*>);
863 chown(-1, $gid, <html/tmp/*>); 853 chown(-1, $gid, <html/tmp/*>);
864 chown(-1, $gid, <html/tmp/l2h/*>); 854 chown(-1, $gid, <html/tmp/l2h/*>);
865 chown(-1, $gid, <html/tmp/l2h/*/*>); 855 chown(-1, $gid, <html/tmp/l2h/*/*>);
866 chown(-1, $gid, <html/tmp/l2h/*/*/*>); 856 chown(-1, $gid, <html/tmp/l2h/*/*/*>);
867 chown(-1, $gid, <courseScripts/*>);
868 chown(-1, $gid, <scoring/*>); 857 chown(-1, $gid, <scoring/*>);
869 chown(-1, $gid, <templates/*>); 858 chown(-1, $gid, <templates/*>);
870 chown(-1, $gid, <templates/*/*>); 859 chown(-1, $gid, <templates/*/*>);
871 chown(-1, $gid, <templates/*/*/*>); 860 chown(-1, $gid, <templates/*/*/*>);
872 print qq(\n The group has been set to "$groupName"\n\n); 861 print qq(\n The group has been set to "$groupName"\n\n);

Legend:
Removed from v.126  
changed lines
  Added in v.127

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9