source: main/tags/2.20/gsdl/cgi-bin/GSDLHOME.pm@ 25588

Last change on this file since 25588 was 1157, checked in by sjboddie, 24 years ago

GSDLHOME.pm and gsdlsite.cfg now have dummy GSDLHOME's in cvs repository.
they'll be replaced with something more sensible when creating distributions

  • Property svn:keywords set to Author Date Id Revision
File size: 563 bytes
Line 
1package GSDLHOME;
2
3BEGIN {
4
5 $ENV{'GSDLHOME'} = '**GSDLHOME**' unless defined $ENV{'GSDLHOME'};
6
7 # just in case GSDLHOME has a slash on the end which would cause
8 # double slashes below
9 $ENV{'GSDLHOME'} =~ s/[\/\\]+$//;
10
11 $ENV{'GSDLOS'} = $^O;
12
13 if ($ENV{'GSDLOS'} =~ /(win|dos)/i) {
14 $ENV{'GSDLOS'} = 'windows';
15 }
16
17 $ENV{'PATH'} .= ":$ENV{'GSDLHOME'}/bin/script";
18 $ENV{'PATH'} .= ":$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}";
19 unshift (@INC, "$ENV{'GSDLHOME'}/perllib");
20 unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
21}
22
231;
Note: See TracBrowser for help on using the repository browser.