root/main/trunk/package-kits/scripts/ @ 29675

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

Added 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).

  • Property svn:executable set to *
1#!/usr/bin/env perl
3use strict;
4use warnings;
5use utf8;
7use lib 'perllib';
8use Greenstone::Site;
10my $site = Greenstone::Site->new (shift);
11$site->exists and die "Site already exists\n";
12$site->create and print "Site created\n";
Note: See TracBrowser for help on using the browser.