projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
busybox: enable sha256sum by default
[openwrt/openwrt.git]
/
package
/
utils
/
busybox
/
convert_defaults.pl
1
#!/usr/bin/env perl
2
3
while
(<>) {
4
/^(# )?CONFIG_([^=]+)(=(.+)| is not set)/
and
do
{
5
my
$default
=
$4
;
6
$1
and
$default
=
"n"
;
7
my
$name
=
$2
;
8
my
$type
=
"bool"
;
9
$default
=~
/^\"/
and
$type
=
"string"
;
10
$default
=~
/^\d/
and
$type
=
"int"
;
11
print
"config BUSYBOX_DEFAULT_
$name
\n\t
$type
\n\t
default
$default
\n
"
;
12
};
13
}