mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
support/script/scancpan: populates Config.in with homepage
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d3c1c647ff
commit
0bf13117aa
@ -577,6 +577,7 @@ while (my ($distname, $dist) = each %dist) {
|
|||||||
mkdir $dirname unless -d $dirname;
|
mkdir $dirname unless -d $dirname;
|
||||||
if ($need_target{$distname} && ($force || !-f $cfgname)) {
|
if ($need_target{$distname} && ($force || !-f $cfgname)) {
|
||||||
my $abstract = $dist->{abstract};
|
my $abstract = $dist->{abstract};
|
||||||
|
my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}};
|
||||||
say qq{write ${cfgname}} unless $quiet;
|
say qq{write ${cfgname}} unless $quiet;
|
||||||
open my $fh, q{>}, $cfgname;
|
open my $fh, q{>}, $cfgname;
|
||||||
say {$fh} qq{config BR2_PACKAGE_${brname}};
|
say {$fh} qq{config BR2_PACKAGE_${brname}};
|
||||||
@ -585,8 +586,9 @@ while (my ($distname, $dist) = each %dist) {
|
|||||||
my $brdep = brname( fsname( $dep ) );
|
my $brdep = brname( fsname( $dep ) );
|
||||||
say {$fh} qq{\tselect BR2_PACKAGE_${brdep}};
|
say {$fh} qq{\tselect BR2_PACKAGE_${brdep}};
|
||||||
}
|
}
|
||||||
say {$fh} qq{\thelp} if $abstract;
|
say {$fh} qq{\thelp};
|
||||||
say {$fh} qq{\t ${abstract}} if $abstract;
|
say {$fh} qq{\t ${abstract}\n} if $abstract;
|
||||||
|
say {$fh} qq{\t ${homepage}};
|
||||||
close $fh;
|
close $fh;
|
||||||
}
|
}
|
||||||
if ($force || !-f $mkname) {
|
if ($force || !-f $mkname) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user