summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-20 02:30:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-20 02:30:36 +0000
commit84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7 (patch)
tree60c38a0bd993154db8d166416a4b2a96f972f5ba /scripts
parentc606df6563b0969de226087bebae65ee361fb5e6 (diff)
downloadmaster-31e0f0ae-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.gz
master-31e0f0ae-84a0696c1ee5378fef9ec79b8e69cc7c2f0fa8a7.tar.bz2
master-31e0f0ae-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')
-rwxr-xr-xscripts/metadata.pl8
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} = [