mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
6cdc31b2d7
Currently, the idems inside media Kconfig are out of order. Sort them using the script below: <script> use strict; use warnings; my %config; my @source; my $out; sub flush_config() { if (scalar %config) { for my $c (sort keys %config) { $out .= $config{$c} . "\n"; } %config = (); } return if (!scalar @source); $out .= "\n"; for my $s (sort @source) { $out .= $s; } $out .= "\n"; @source = (); } sub sort_kconfig($) { my $fname = shift; my $cur_config = ""; @source = (); $out = ""; %config = (); open IN, $fname or die; while (<IN>) { if (m/^config\s+(.*)/) { $cur_config = $1; $config{$cur_config} .= $_; } elsif (m/^source\s+(.*)/) { push @source, $_; } elsif (m/^\s+/) { if ($cur_config eq "") { $out .= $_; } else { $config{$cur_config} .= $_; } } else { flush_config(); $cur_config = ""; $out .= $_; } } close IN or die; flush_config(); $out =~ s/\n\n+/\n\n/g; $out =~ s/\n+$/\n/; open OUT, ">$fname"; print OUT $out; close OUT; } for my $fname(@ARGV) { sort_kconfig $fname } </script> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> |
||
---|---|---|
.. | ||
af9015.c | ||
af9015.h | ||
af9035.c | ||
af9035.h | ||
anysee.c | ||
anysee.h | ||
au6610.c | ||
au6610.h | ||
az6007.c | ||
ce6230.c | ||
ce6230.h | ||
dvb_usb_common.h | ||
dvb_usb_core.c | ||
dvb_usb_urb.c | ||
dvb_usb.h | ||
dvbsky.c | ||
ec168.c | ||
ec168.h | ||
gl861.c | ||
Kconfig | ||
lmedm04.c | ||
lmedm04.h | ||
Makefile | ||
mxl111sf-demod.c | ||
mxl111sf-demod.h | ||
mxl111sf-gpio.c | ||
mxl111sf-gpio.h | ||
mxl111sf-i2c.c | ||
mxl111sf-i2c.h | ||
mxl111sf-phy.c | ||
mxl111sf-phy.h | ||
mxl111sf-reg.h | ||
mxl111sf-tuner.c | ||
mxl111sf-tuner.h | ||
mxl111sf.c | ||
mxl111sf.h | ||
rtl28xxu.c | ||
rtl28xxu.h | ||
usb_urb.c | ||
zd1301.c |