projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix one of the iptables 1.3.4 compile errors on 2.4
[openwrt.git]
/
openwrt
/
scripts
/
gen_busybox_config.pl
1
#!/usr/bin/perl
2
use
strict
;
3
4
my
$line
;
5
my
$l1
=
''
;
6
my
$l2
=
'=y'
;
7
while
(<>) {
8
chomp
;
9
/^(# )BR2_LARGEFILE(.+)$/
and
do
{
10
$l1
=
$1
;
11
$l2
=
$2
;
12
};
13
/^(# )?BUSYBOX_(.+)/
and
do
{
14
my
$p1
=
$1
;
15
my
$p2
=
$2
;
16
$p2
=~
/(CONFIG_LFS|FDISK_SUPPORT_LARGE_DISKS)/
and
do
{
17
$p1
=
$l1
;
18
$p2
=
"
$1
$l2
"
;
19
};
20
print
"
$p1
$p2
\n
"
;
21
}
22
}
This page took
0.046401 seconds
and
5
git commands to generate.