summaryrefslogtreecommitdiff
path: root/tools/mkheaders
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-17 14:40:44 +0000
committerSadie Powell <sadie@witchery.services>2020-01-17 15:35:20 +0000
commit19cdd938610e6630d58bd5b0fd311a80f6e54647 (patch)
treeb8c8ad671fa76ccdf557d63725e1f81e5bd0f9ac /tools/mkheaders
parent5ae65245221dfad24510ee9a1fbead8db740251f (diff)
Fix Perl tools not using the correct directory name in 'use lib'.
Diffstat (limited to 'tools/mkheaders')
-rwxr-xr-xtools/mkheaders11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/mkheaders b/tools/mkheaders
index a8763e9d7..4b1f370f3 100755
--- a/tools/mkheaders
+++ b/tools/mkheaders
@@ -30,12 +30,13 @@ use feature ':5.10';
use strict;
use warnings FATAL => qw(all);
-use File::Util ();
-use FindBin qw($RealDir);
-use List::Util qw(uniq);
-use POSIX qw(strftime);
+use File::Basename qw(dirname);
+use File::Util ();
+use FindBin qw($RealDir);
+use List::Util qw(uniq);
+use POSIX qw(strftime);
-use lib $RealDir;
+use lib dirname $RealDir;
use make::console;
my @ignored_revisions = (