8 # optionally print out the architecture as the first line of our output
14 # first, read the override file
16 open (FILE,"$args[0]") || die "Could not open $args[0]";
21 if (/\# ([\w]+) is not set/) {
23 } elsif (/([\w]+)=/) {
27 if (defined($configname) && !exists($configvalues{$configname})) {
28 $configvalues{$configname} = $str;
29 $configoptions[$configcounter] = $configname;
34 # now, read and output the entire configfile, except for the overridden
35 # parts... for those the new value is printed.
37 open (FILE2,"$args[1]") || die "Could not open $args[1]";
41 if (/\# ([\w]+) is not set/) {
43 } elsif (/([\w]+)=/) {
47 if (defined($configname) && exists($configvalues{$configname})) {
48 print "$configvalues{$configname}";
49 delete($configvalues{$configname});
55 # now print the new values from the overridden configfile
58 while ($counter < $configcounter) {
59 my $configname = $configoptions[$counter];
60 if (exists($configvalues{$configname})) {
61 print "$configvalues{$configname}";