imported patch dedup
This commit is contained in:
parent
39fcadb2ad
commit
e221bf0bfe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291915
@ -178,6 +178,8 @@ BEGIN {
|
|||||||
nv = "___NO__VALUE___";
|
nv = "___NO__VALUE___";
|
||||||
|
|
||||||
while ((getline < "/dev/stdin") > 0) {
|
while ((getline < "/dev/stdin") > 0) {
|
||||||
|
if ($1 ~ "^#")
|
||||||
|
continue;
|
||||||
if ($1 == "/set") {
|
if ($1 == "/set") {
|
||||||
for (i = 2; i <= NF; i++) {
|
for (i = 2; i <= NF; i++) {
|
||||||
kv($i);
|
kv($i);
|
||||||
@ -192,6 +194,9 @@ BEGIN {
|
|||||||
process_line($1, $0);
|
process_line($1, $0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Print the last set of defaults. This will carry
|
||||||
|
# over, I think, to makefs' defaults
|
||||||
|
print mtree_from_kvs("/set", defaults)
|
||||||
for (x in tree)
|
for (x in tree)
|
||||||
print tree[x];
|
print tree[x];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user