Merge branch 'os/status-docfix'
[git.git] / Documentation / lint-man-end-blurb.perl
blobd69312e5db585ca98dc05d892fcccb0d2b7446cb
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 my $exit_code = 0;
7 sub report {
8 my ($target, $msg) = @_;
9 print "error: $target: $msg\n";
10 $exit_code = 1;
13 local $/;
14 while (my $slurp = <>) {
15 report($ARGV, "has no 'Part of the linkgit:git[1] suite' end blurb")
16 unless $slurp =~ m[
17 ^GIT\n
18 ---\n
19 \QPart of the linkgit:git[1] suite\E \n
21 ]mx;
24 exit $exit_code;