diff options
| author | 2015-02-07 17:55:20 +0000 | |
|---|---|---|
| committer | 2015-05-13 15:22:43 +0100 | |
| commit | 32b789eec181ccbe720fa75abed8b2f3fddaff47 (patch) | |
| tree | 898aae77bf0bade113026ebefd58f3642be45d1e | |
| parent | calcdep: Remove a workaround for a very old version of BSD Make. (diff) | |
calcdep: Use the same preamble as other Perl tools.
| -rwxr-xr-x | make/calcdep.pl | 11 |
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; |
