blob: 6bdb13ad9fdb36b8c8f5244fa66fb29c0f619cc7 [file] [log] [blame]
Ævar Arnfjörð Bjarmasoncafd9822021-04-09 17:02:48 +02001#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6my $exit_code = 0;
7sub report {
8 my ($target, $msg) = @_;
Ævar Arnfjörð Bjarmasonf0055932021-10-15 14:39:12 +02009 print STDERR "error: $target: $msg\n";
Ævar Arnfjörð Bjarmasoncafd9822021-04-09 17:02:48 +020010 $exit_code = 1;
11}
12
13local $/;
14while (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
20 \z
21 ]mx;
22}
23
24exit $exit_code;