# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.176 2018/06/22 13:58:55 espie Exp $
+# $OpenBSD: Add.pm,v 1.177 2018/09/04 14:46:12 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
$file->name);
}
delete $wanted->{$file->name};
+ my $fullname = $e->fullname;
+ if ($fullname =~ m,^$state->{localbase}/share/doc/pkg-readmes/,) {
+ push(@{$state->{readmes}}, $fullname);
+ }
+
$e->prepare_to_extract($state, $file);
$e->extract($state, $file);
$p->advance($e);
$self->SUPER::install($state);
my $fullname = $self->fullname;
my $destdir = $state->{destdir};
- if ($fullname =~ m,^$state->{localbase}/share/doc/pkg-readmes/,) {
- $state->{readmes}++;
- }
-
if ($state->{not}) {
$state->say("moving tempfile -> #1",
$destdir.$fullname) if $state->verbose >= 5;
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.267 2018/08/03 06:49:26 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.268 2018/09/04 14:46:12 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
my ($class, $state) = @_;
OpenBSD::PackingElement::Fontdir->finish($state);
OpenBSD::PackingElement::RcScript->report($state);
- if ($state->{readmes}) {
- $state->say("Look in #1/share/doc/pkg-readmes for extra documentation.", $state->{localbase});
+ if (defined $state->{readmes}) {
+ $state->say("New and changed readme(s):");
+ for my $file (sort @{$state->{readmes}}) {
+ $state->say("\t#1", $file);
+ }
}
}