utils/scancpan: add a full stop to the help text when missing
authorFrancois Perrad <fperrad@gmail.com>
Sun, 28 Oct 2018 15:23:12 +0000 (16:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 1 Nov 2018 13:41:00 +0000 (14:41 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/scancpan

index e77863de34ca5cc6fcdd5654f5bd65c64d9e6918..5465ff43041f27e8fc6e5f585005871dd9061a67 100755 (executable)
@@ -690,6 +690,7 @@ while (my ($distname, $dist) = each %dist) {
     mkdir $dirname unless -d $dirname;
     if ($need_target{$distname} && ($force || !-f $cfgname)) {
         $dist->{abstract} =~ s|\s+$||;
+        $dist->{abstract} .= q{.} unless $dist->{abstract} =~ m|\.$|;
         my $abstract = wrap( q{}, qq{\t  }, $dist->{abstract} );
         my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}};
         say qq{write ${cfgname}} unless $quiet;