diff options
author | Yorhel <git@yorhel.nl> | 2019-09-12 17:07:46 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-12 17:54:50 +0200 |
commit | adc906096f4644788b970e5ed936ca3e70bde2e8 (patch) | |
tree | 8d2aacf12b008820a5a331e648f915a67987cdfb /util/multi.pl | |
parent | 752bc1724968a1f15b17ba9e607f2163997b4efa (diff) |
Add VNDB::Config module and unified conf.pl config file
This gets rid of global.pl, config.pl and config3.pl and uses the
cleaner config3.pl format for the config file. The config is easily
accessible from anywhere by importing the new VNDB::Config module; The
global $VNDB::S,O,M,ROOT variables have been removed.
Sorry for all the churn...
Diffstat (limited to 'util/multi.pl')
-rwxr-xr-x | util/multi.pl | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/util/multi.pl b/util/multi.pl index 010951a2..1ad92ef4 100755 --- a/util/multi.pl +++ b/util/multi.pl @@ -1,24 +1,13 @@ #!/usr/bin/perl - -# -# Multi - core namespace for initialisation and global variables -# - -package Multi; - use strict; use warnings; use Cwd 'abs_path'; +my $ROOT; +BEGIN { ($ROOT = abs_path $0) =~ s{/util/multi\.pl$}{} } -our $ROOT; -BEGIN { ($ROOT = abs_path $0) =~ s{/util/multi\.pl$}{}; *VNDB::ROOT = \$ROOT } -use lib $VNDB::ROOT.'/lib'; - +use lib $ROOT.'/lib'; use Multi::Core; -require $VNDB::ROOT.'/data/global.pl'; Multi::Core->run(); - - |