lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r469702 - /lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm
Date Tue, 31 Oct 2006 23:23:11 GMT
Author: marvin
Date: Tue Oct 31 15:23:09 2006
New Revision: 469702

URL: http://svn.apache.org/viewvc?view=rev&rev=469702
Log:
Add executable extension to a couple files so they get cleaned up properly
under Windows.  Delay deletion of lucyconf_in until cleanup to allow for
debugging.

Modified:
    lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm

Modified: lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm?view=diff&rev=469702&r1=469701&r2=469702
==============================================================================
--- lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm Tue Oct 31 15:23:09 2006
@@ -14,8 +14,8 @@
 
 my $base_dir = -e 'charmonizer' ? curdir() : updir();
 
-my $METAQUOTE_EXE_PATH     = 'metaquote';
-my $CHARMONIZE_EXE_PATH    = 'charmonize';
+my $METAQUOTE_EXE_PATH  = 'metaquote' . $Config{_exe};
+my $CHARMONIZE_EXE_PATH = 'charmonize' . $Config{_exe};
 my $CHARMONIZER_SOURCE_DIR = catdir( $base_dir, 'charmonizer', 'src' );
 my $FILTERED_DIR = catdir( $base_dir, qw( charmonizer filtered_src ) );
 
@@ -174,9 +174,7 @@
         system( $CHARMONIZE_EXE_PATH, $lucyconf_in );
     }
 
-    unlink($lucyconf_in) or die "Can't unlink '$lucyconf_in': $!";
-
-    $self->add_to_cleanup($lucyconf_path);
+    $self->add_to_cleanup( $lucyconf_path, $lucyconf_in );
 
     # generated when ./charmonize is run
     $self->add_to_cleanup("_charm_test.h");



Mime
View raw message