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/metadata.pl | |
parent | c606df6563b0969de226087bebae65ee361fb5e6 (diff) | |
download | upstream-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.gz upstream-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.bz2 upstream-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.zip |
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/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} = [ |