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

Diff of /trunk/webwork/system/system_webwork_setup.pl

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

Revision 89 Revision 90
444#################### write webworkConfig.pm file 444#################### write webworkConfig.pm file
445# uses: $mainDir, $cgiURL, $htmlURL 445# uses: $mainDir, $cgiURL, $htmlURL
446 446
447print "Writing lib/webworkConfig.pm file...\n"; 447print "Writing lib/webworkConfig.pm file...\n";
448open CONFIG_FILE, ">${mainDir}lib/webworkConfig.pm"; 448open CONFIG_FILE, ">${mainDir}lib/webworkConfig.pm";
449#print CONFIG_FILE
450# "package Global;\n\n",
451# "\$cgiWebworkURL = \"${cgiURL}cgi-scripts/\";\n",
452# "\$htmlWebworkURL = \"$htmlURL\";\n",
453# "\$mainDirectory = \"$mainDir\";\n\n",
454# "1;";
455print CONFIG_FILE<<END_OF_CONFIG_FILE; 449print CONFIG_FILE<<END_OF_CONFIG_FILE;
456package Global; 450package Global;
457 451
458################################################################################ 452################################################################################
459# WeBWorK 453# WeBWorK
463################################################################################ 457################################################################################
464 458
465\$mainDirectory = "$mainDir"; 459\$mainDirectory = "$mainDir";
466\$htmlWebworkURL = "$htmlURL"; 460\$htmlWebworkURL = "$htmlURL";
467\$cgiWebworkURL = "${cgiURL}"; 461\$cgiWebworkURL = "${cgiURL}";
468\$cgiWebworkURL .= "cgi-scripts/" if \$cgiDebugMode; 462\$cgiWebworkURL .= "cgi-scripts/" unless \$cgiDebugMode;
469 463
4701; 4641;
471END_OF_CONFIG_FILE 465END_OF_CONFIG_FILE
472close CONFIG_FILE; 466close CONFIG_FILE;
473print "Done writing lib/webworkConfig.pm file.\n\n"; 467print "Done writing lib/webworkConfig.pm file.\n\n";

Legend:
Removed from v.89  
changed lines
  Added in v.90

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9