mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 13:31:29 +00:00
Update repository-generator.pl
This commit is contained in:
parent
cbd2336442
commit
494811c04b
@ -1,13 +1,15 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
use warnings FATAL => 'all';
|
|
||||||
no warnings 'experimental::smartmatch';
|
|
||||||
use experimental 'smartmatch';
|
|
||||||
|
|
||||||
# Author: Akkadius
|
# Author: Akkadius
|
||||||
# @file: repository-generator.pl
|
# @file: repository-generator.pl
|
||||||
# @description: Script used to generate database repositories
|
# @description: Script used to generate database repositories
|
||||||
# @example perl ~/code/utils/scripts/generators/repository-generator.pl ~/server/
|
# @example perl ~/code/utils/scripts/generators/repository-generator.pl ~/server/
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# modules
|
||||||
|
#############################################
|
||||||
|
use warnings FATAL => 'all';
|
||||||
|
no warnings 'experimental::smartmatch';
|
||||||
|
use experimental 'smartmatch';
|
||||||
use File::Find;
|
use File::Find;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use DBI;
|
use DBI;
|
||||||
@ -49,6 +51,9 @@ if (!-e $config_path) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# fetch schema from world
|
||||||
|
#############################################
|
||||||
my $output = `cd $server_path && $found_world_path database:schema`;
|
my $output = `cd $server_path && $found_world_path database:schema`;
|
||||||
my $database_schema = $json->decode($output);
|
my $database_schema = $json->decode($output);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user