diff options
author | Sadie Powell <sadie@witchery.services> | 2021-01-25 12:13:54 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-01-25 12:39:56 +0000 |
commit | f6b861f12d070ba931d829505bfd3229653f5df2 (patch) | |
tree | b043d1e05d9703ab0ec29be91055d793f0fd93d0 /make/calcdep.pl | |
parent | cc28ba0f2164ea68db1bc373ee06fc58f82c3314 (diff) |
Fix unnecessary begin blocks in Perl source files.
Diffstat (limited to 'make/calcdep.pl')
-rwxr-xr-x | make/calcdep.pl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl index 59b61e65a..3c02024fa 100755 --- a/make/calcdep.pl +++ b/make/calcdep.pl @@ -21,20 +21,13 @@ # -BEGIN { - push @INC, $ENV{SOURCEPATH}; - require 5.10.0; - unless (-f 'configure') { - print "Error: $0 must be run from the main source directory!\n"; - exit 1; - } -} - use strict; use warnings FATAL => qw(all); -use File::Basename qw(basename); +use File::Basename qw(basename dirname); +use FindBin qw($RealDir); +use lib dirname $RealDir; use make::common; use constant { |