root/main/trunk/package-kits/scripts/perllib/Greenstone/Config.pm @ 29675

Revision 29675, 327 bytes (checked in by jts21, 5 years ago)

Added gs-mksite.pl. Checks if a site exists, and creates new sites with a collect directory and siteConfig.xml file. Reads the GSDL environment variables to find the sites location (with a default if they aren't set).

Line 
1package Greenstone::Config;
2
3use strict;
4use warnings;
5use utf8;
6
7my $defaultGSDLHOME = "/usr/share/greenstone/gs2build";
8my $defaultGSDL3HOME= "/usr/share/greenstone/web";
9
10our $GSDLHOME = defined $ENV{GSDLHOME} ? $ENV{GSDLHOME} : $defaultGSDLHOME;
11our $GSDL3HOME= defined $ENV{GSDL3HOME}? $ENV{GSDL3HOME}: $defaultGSDL3HOME;
Note: See TracBrowser for help on using the browser.