Merged in Governor-Tarkin/swg-src (pull request #17)
[swg-src.git] / tools / configFileBuilder.pl
blob8a3fbdbd0dcfe69d8cbcedbb0c68181611e8a4c3
1 while (<>)
3 next if (s/^cfg: // == 0);
4 chomp;
5 ($section, $value) = /\[(.*)\] (.*)/;
6 $key{$section . "." . $value} = 1;
9 foreach (sort keys %key)
11 ($section, $value) = split(/\./, $_, 2);
12 if ($section ne $oldSection)
14 $oldSection = $section;
15 print "[", $section, "]\n";
17 print "\t", $value, "\n";