1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

clean up menu configuration

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3801 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm
2006-05-19 22:46:24 +00:00
parent 95bdcf394e
commit 93e50b06ca
5 changed files with 33 additions and 14 deletions

View File

@@ -30,7 +30,9 @@ sub print_category($) {
}
print "\t\thelp\n";
print $pkg->{description};
print "\n"
print "\n";
$pkg->{config} and print $pkg->{config}."\n";
}
}
print "endmenu\n\n";
@@ -75,6 +77,15 @@ while ($line = <>) {
$desc .= "\t\t$line";
}
$pkg->{description} = $desc;
};
$line =~ /^Config: \s*(.*)\s*$/ and do {
my $conf = "$1\n";
my $line;
while ($line = <>) {
last if $line =~ /^@@/;
$conf .= "$line";
}
$pkg->{config} = $conf;
}
}