]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - tools/mkheaders
Add a function for showing a command whilst executing it.
[user/henk/code/inspircd.git] / tools / mkheaders
index a8763e9d704c6a854a82ad7aa3ebf73a206ca613..ee8142d3b07e912d2f190995a7854ee0d5affde9 100755 (executable)
@@ -30,12 +30,14 @@ 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::common;
 use make::console;
 
 my @ignored_revisions = (
@@ -143,7 +145,7 @@ for my $path (@paths) {
        }
 }
 
-system 'git', 'commit',
+execute 'git', 'commit',
        '--author', 'InspIRCd Robot <noreply@inspircd.org>',
        '--message', 'Update copyright headers.',
        '--', @updated;