- Timestamp:
- 2019-04-12T19:36:30+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/cgi-bin/build-server.pl
r24872 r33011 12 12 Win32::SetChildShowWindow(0) 13 13 if defined &Win32::SetChildShowWindow; 14 15 # On Ubuntu 18.04, gsdlCGI.pm can't be found as the cgi folder is not among @INC paths. 16 # Ensure gsdlCGI.pm is available in @INC by adding the cgi folder to it. 17 # For GS2: 18 my $gsdl_cgi_path = $ENV{'GSDLHOME'} . "/cgi-bin"; 19 # For GS3: 20 $gsdl_cgi_path = $ENV{'GSDL3HOME'} . "/WEB-INF" . "/cgi" if defined $ENV{'GSDL3HOME'}; 21 22 my $found_cgi_path = 0; 23 foreach my $inc_path (@INC) { 24 if($inc_path eq $gsdl_cgi_path) { 25 $found_cgi_path = 1; 26 last; 27 } 28 } 29 if(!$found_cgi_path) { 30 unshift (@INC, $gsdl_cgi_path); 31 } 14 32 } 15 33
Note:
See TracChangeset
for help on using the changeset viewer.