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 |
|
---|
3 | use strict;
|
---|
4 | use warnings;
|
---|
5 | use utf8;
|
---|
6 |
|
---|
7 | use lib 'perllib';
|
---|
8 | use Greenstone::Site;
|
---|
9 |
|
---|
10 | my $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.