-
Notifications
You must be signed in to change notification settings - Fork 51
/
db.pl
48 lines (29 loc) · 810 Bytes
/
db.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/perl -w
=head1 NAME
db.pl - installation script to launch the apropriate database instalation script
=head1 VERSION
$LastChangedRevision$
=head1 DATE
$Id$
=head1 DESCRIPTION
This script is called during C<make install> to install the Bricolage
database.
=head1 AUTHOR
Sam Tregar <stregar@about-inc.com>
=head1 SEE ALSO
L<Bric::Admin>
=cut
use strict;
use FindBin;
use lib "$FindBin::Bin/lib";
use Bric::Inst qw(:all);
use File::Spec::Functions qw(:ALL);
use File::Find qw(find);
our ($DB, $DBCONF);
print "\n\n==> Creating Bricolage Database <==\n\n";
$DBCONF = './database.db';
do $DBCONF or die "Failed to read $DBCONF : $!";
my $instdb;
$instdb = "./inst/dbload_$DB->{db_type}.pl";
do $instdb or die "Failed to launch $DB->{db_type} database loading script ($instdb)";
exit 0;