Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323497
b: refs/heads/master
c: 3f0c541
h: refs/heads/master
i:
  323495: 7936c68
v: v3
  • Loading branch information
Bill Pemberton authored and Steven Rostedt committed Aug 16, 2012
1 parent a5ccc11 commit db48370
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 224a257190694f253f7a4c533fd6958d2e5fa669
refs/heads/master: 3f0c54131679889d64e8b1831bac40c0d64cf511
14 changes: 6 additions & 8 deletions trunk/scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ sub dprint {
},
);

sub find_config {
sub read_config {
foreach my $conf (@searchconfigs) {
my $file = $conf->{"file"};

Expand All @@ -115,17 +115,15 @@ sub find_config {

print STDERR "using config: '$file'\n";

open(CIN, "$exec $file |") || die "Failed to run $exec $file";
return;
open(my $infile, '-|', "$exec $file") || die "Failed to run $exec $file";
my @x = <$infile>;
close $infile;
return @x;
}
die "No config file found";
}

find_config;

# Read in the entire config file into config_file
my @config_file = <CIN>;
close CIN;
my @config_file = read_config;

# Parse options
my $localmodconfig = 0;
Expand Down

0 comments on commit db48370

Please sign in to comment.