summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-02-07 17:55:20 +0000
committerPeter Powell <petpow@saberuk.com>2015-05-13 15:22:43 +0100
commit32b789eec181ccbe720fa75abed8b2f3fddaff47 (patch)
tree898aae77bf0bade113026ebefd58f3642be45d1e /make
parent45c048241d3766ed1b6f1637d04b33d26d60ffed (diff)
calcdep: Use the same preamble as other Perl tools.
Diffstat (limited to 'make')
-rwxr-xr-xmake/calcdep.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index 626d3a194..66eb4f3dc 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -19,8 +19,17 @@
#
+BEGIN {
+ 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;
+use warnings FATAL => qw(all);
+
use POSIX qw(getcwd);
sub find_output;