summaryrefslogtreecommitdiffstats
path: root/migrate.pl
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-03-09 14:53:18 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-12-06 11:05:08 +0100
commit78dd0cc500f6ce53bda9a0f1de96b4210363ceaf (patch)
treeba674061e465a1b1c477d1d7760391cb1ba1b4d0 /migrate.pl
parentf668427531b9e81a5e94950722aa8514bfd641a8 (diff)
downloadbugzilla-78dd0cc500f6ce53bda9a0f1de96b4210363ceaf.tar.gz
bugzilla-78dd0cc500f6ce53bda9a0f1de96b4210363ceaf.tar.xz
Misc fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'migrate.pl')
-rwxr-xr-xmigrate.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/migrate.pl b/migrate.pl
index 907e0cab5..0c67df42f 100755
--- a/migrate.pl
+++ b/migrate.pl
@@ -11,8 +11,15 @@ use strict;
use warnings;
use File::Basename;
-BEGIN { chdir dirname($0); }
-use lib qw(. lib local/lib/perl5);
+use File::Spec;
+BEGIN {
+ require lib;
+ my $dir = File::Spec->rel2abs(dirname(__FILE__));
+ my $base = File::Spec->catdir($dir);
+ lib->import($base, File::Spec->catdir($base, "lib"), File::Spec->catdir($base, qw(local lib perl5)));
+ chdir $base;
+}
+
use Bugzilla;
use Bugzilla::Migrate;