root/main/trunk/package-kits/scripts/gs-mksite.pl @ 29675

Revision 29675, 232 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).

  • Property svn:executable set to *
Line 
1#!/usr/bin/env perl
2
3use strict;
4use warnings;
5use utf8;
6
7use lib 'perllib';
8use Greenstone::Site;
9
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.