diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-20 02:30:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-20 02:30:36 +0000 |
commit | 84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7 (patch) | |
tree | 60c38a0bd993154db8d166416a4b2a96f972f5ba /scripts | |
parent | c606df6563b0969de226087bebae65ee361fb5e6 (diff) | |
download | mtk-20170518-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.zip mtk-20170518-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.gz mtk-20170518-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.bz2 |
add descriptions to the broadcom target profiles and export them to the target metadata (not presented in menuconfig yet)
SVN-Revision: 6137
Diffstat (limited to 'scripts')
-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 9434af0..396954a 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} = [ |