X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mkfiles.pl;h=b38a218b50566e829126c526cf1e7249adb627e0;hb=29184e3702f7b9131d78f4732e4deae5d1c918bc;hp=830de49187012449a042960b52558b7725154ea6;hpb=5a2e9575259426a2a4b2bbb62a9d3289233660df;p=PuTTY.git diff --git a/mkfiles.pl b/mkfiles.pl index 830de491..b38a218b 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -88,7 +88,9 @@ while () { } if ($_[0] eq "!forceobj") { $forceobj{$_[1]} = 1; next; } if ($_[0] eq "!begin") { - if (&mfval($_[1])) { + if ($_[1] =~ /^>(.*)/) { + $divert = \$auxfiles{$1}; + } elsif (&mfval($_[1])) { $sect = $_[2] ? $_[2] : "end"; $divert = \($makefile_extra{$_[1]}->{$sect}); } else { @@ -145,6 +147,12 @@ while () { close IN; +foreach $aux (sort keys %auxfiles) { + open AUX, ">$aux"; + print AUX $auxfiles{$aux}; + close AUX; +} + # Now retrieve the complete list of objects and resource files, and # construct dependency data for them. While we're here, expand the # object list for each program, and complain if its type isn't set.