aboutsummaryrefslogtreecommitdiffstats
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
commit2adf3524cf21365e61b9690565b93c6ccd5a57bf (patch)
treeaf3eeb879c6e3fd9a5706675a55b66993a0915c5 /scripts
parent4fb96c5db677ba6039ec373a1d4ed6562743bd6b (diff)
downloadupstream-2adf3524cf21365e61b9690565b93c6ccd5a57bf.tar.gz
upstream-2adf3524cf21365e61b9690565b93c6ccd5a57bf.tar.bz2
upstream-2adf3524cf21365e61b9690565b93c6ccd5a57bf.zip
add descriptions to the broadcom target profiles and export them to the target metadata (not presented in menuconfig yet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6137 3c298f89-4303-0410-b956-a3cf2f4a3e73
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} = [