]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
calcdep: Use the same preamble as other Perl tools.
authorPeter Powell <petpow@saberuk.com>
Sat, 7 Feb 2015 17:55:20 +0000 (17:55 +0000)
committerPeter Powell <petpow@saberuk.com>
Wed, 13 May 2015 14:22:43 +0000 (15:22 +0100)
make/calcdep.pl

index 626d3a194d59f0a24f980a690bf3e623369e6c86..66eb4f3dca6fea09c6cc07a2278769c67b67dd70 100755 (executable)
 #
 
 
+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;