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

Last change on this file since 29675 was 29675, checked in by Jeremy Symon, 9 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 *
File size: 232 bytes
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 repository browser.