From 19cdd938610e6630d58bd5b0fd311a80f6e54647 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 17 Jan 2020 14:40:44 +0000 Subject: Fix Perl tools not using the correct directory name in 'use lib'. --- tools/mkheaders | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tools/mkheaders') 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 = ( -- cgit v1.2.3