[Rd] Suggested change to build.pl

From: Dominick Samperi <djsamperi_at_gmail.com>
Date: Fri, 04 Jun 2010 11:11:11 -0400

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");

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");


Does this make sense?


        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 04 Jun 2010 - 15:14:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jun 2010 - 13:50:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive