[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 1531 Revision 1532
1#!/usr/local/bin/perl 1#!/usr/bin/env perl
2 2
3################################################################################ 3################################################################################
4# WeBWorK 4# WeBWorK
5# 5#
6# Copyright (c) 1995-2001 WeBWorK Team, University of Rochester 6# Copyright (c) 1995-2001 WeBWorK Team, University of Rochester
14require 5.000; 14require 5.000;
15use Cwd; 15use Cwd;
16use File::Copy; 16use File::Copy;
17 17
18# define built-in defaults 18# define built-in defaults
19my $DEFAULT_PERL_PATH = '/usr/bin/perl'; 19my $DEFAULT_PERL_PATH = '/usr/bin/env perl';
20my $DEFAULT_CGI_URL = '/cgi-bin/webwork/system/'; 20my $DEFAULT_CGI_URL = '/cgi-bin/webwork/system/';
21my $DEFAULT_HTML_URL = '/webwork_system_html/'; 21my $DEFAULT_HTML_URL = '/webwork_system_html/';
22my $DEFAULT_ADMIN_GROUP = 'wwadmin'; 22my $DEFAULT_ADMIN_GROUP = 'wwadmin';
23 23
24# define code strings 24# define code strings
114 114
115WeBWorK needs to know the path of your perl binary, so that this 115WeBWorK needs to know the path of your perl binary, so that this
116information can be used in the headers of cgi scripts. Please make sure 116information can be used in the headers of cgi scripts. Please make sure
117that the version of perl you specify is 5.004 or later. 117that the version of perl you specify is 5.004 or later.
118 118
119If you have commit access to the WeBWorK system repository, you MUST
120leave this as "/usr/bin/env perl".
121
119}; 122};
120 123
121my $CGI_URL_TEXT = q{ 124my $CGI_URL_TEXT = q{
122 125
123In order for generated HTML to be able to invoke CGI scripts, WeBWorK 126In order for generated HTML to be able to invoke CGI scripts, WeBWorK
265 268
266#################### system HTML directory 269#################### system HTML directory
267 270
268unless(defined $htmlDir) { 271unless(defined $htmlDir) {
269 page($HTML_DIR_TEXT); 272 page($HTML_DIR_TEXT);
273 my $htmlDirGuess = ${mainDir};
274 $htmlDirGuess =~ s|[^/]+/$|system_html/|;
270 $htmlDir = questionString("Where is the WeBWorK system HTML directory?", "${mainDir}../system_html/"); 275 $htmlDir = questionString("Where is the WeBWorK system HTML directory?", $htmlDirGuess);
271 $htmlDir .= '/' unless $htmlDir =~ m|/$|; # ensure trailing slash 276 $htmlDir .= '/' unless $htmlDir =~ m|/$|; # ensure trailing slash
272} 277}
273print "We'll use $htmlDir as WeBWorK's system HTML directory.\n"; 278print "We'll use $htmlDir as WeBWorK's system HTML directory.\n";
274 279
275#################### HTML URL 280#################### HTML URL

Legend:
Removed from v.1531  
changed lines
  Added in v.1532

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9