mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +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> |
||
---|---|---|
.. | ||
gl860 | ||
m5602 | ||
stv06xx | ||
autogain_functions.c | ||
benq.c | ||
conex.c | ||
cpia1.c | ||
dtcs033.c | ||
etoms.c | ||
finepix.c | ||
gspca.c | ||
gspca.h | ||
jeilinj.c | ||
jl2005bcd.c | ||
jpeg.h | ||
Kconfig | ||
kinect.c | ||
konica.c | ||
Makefile | ||
mars.c | ||
mr97310a.c | ||
nw80x.c | ||
ov519.c | ||
ov534_9.c | ||
ov534.c | ||
pac207.c | ||
pac7302.c | ||
pac7311.c | ||
pac_common.h | ||
se401.c | ||
se401.h | ||
sn9c20x.c | ||
sn9c2028.c | ||
sn9c2028.h | ||
sonixb.c | ||
sonixj.c | ||
spca500.c | ||
spca501.c | ||
spca505.c | ||
spca506.c | ||
spca508.c | ||
spca561.c | ||
spca1528.c | ||
sq905.c | ||
sq905c.c | ||
sq930x.c | ||
stk014.c | ||
stk1135.c | ||
stk1135.h | ||
stv0680.c | ||
sunplus.c | ||
t613.c | ||
topro.c | ||
touptek.c | ||
tv8532.c | ||
vc032x.c | ||
vicam.c | ||
w996Xcf.c | ||
xirlink_cit.c | ||
zc3xx-reg.h | ||
zc3xx.c |