Under Linux the cleanup script (if it exists) is run at the end, before
the package archive is created, and this prevents intermediate files
that are no longer needed from being written to the archive.

Unfortunately, this does not happen under Windows when there
is a cleanup.win. That is, cleanup.win is not run before the
archive is created.

Here is the code in build.pl that checks for cleanup and runs
it before building the archive:

if(!$WINDOWS && -x "./cleanup") {
    $log->message("running cleanup");
    R_system("./cleanup");
 }

But the case where $WINDOWS is true is never
addressed.

The problem can be resolved by adding:

if($WINDOWS && -e "./cleanup.win") {
     $log->message("running cleanup.win");
     R_system("./cleanup.win")
}

Does this make sense?

Thanks,
Dominick

	[[alternative HTML version deleted]]

