diff options
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 9434af0f9d..396954a2c7 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -45,6 +45,14 @@ sub parse_target_metadata() { }; /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1; /^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ]; + /^Target-Profile-Description:/ and do { + my $desc; + while (<>) { + last if /^@@/; + $desc .= $_; + } + $profile->{desc} = $desc; + }; } foreach my $target (@target) { @{$target->{profiles}} > 0 or $target->{profiles} = [ |