war...@bo... wrote:
>If I tar and gzip the blib/ directory from Win32 all the file names end up
>using DOS names. If I try it from Linux the installation results in an
>error. I was wondering what versions of nmake, tar, and gzip you use -- and
>whether you make the PPM distribution (i.e. blib/ directory) on Linus or
>Windows.
>
>
>
What I'm using is working reasonably well for ActiveState 5.6.*, there's
problems with 5.8.0, though which still need to be resolved. Here's the
Perl code (checked into CVS under eg/release, it's not part of the
distribution) I use under Linux to wrap the Win32 package, hope that helps:
# Win32 package
print "Building Win32 ppm distribution ...\n";
system("make clean; perl Makefile.PL
BINARY_LOCATION=\"http://log4perl.sourceforge.net/ppm/Log-Log4perl.tar.gz\";
make; make ppd; tar zcf Log-Log4perl.tar.gz blib");
print "Patching Log-Log4perl.ppd ...\n";
open FILE, "<Log-Log4perl.ppd" or die "Cannot open Log-Log4perl.ppd";
my $data = join '', <FILE>;
close FILE;
$data =~ s#^.*?Test-(More|Simple).*?\n##mg;
$data =~ s#<OS NAME=".*?" />#<OS NAME="MSWin32" />#;
$data =~ s#<ARCHITECTURE NAME=".*?" />#<ARCHITECTURE
NAME="MSWin32-x86-multi-thread" />#;
open FILE, ">Log-Log4perl.ppd" or die "Cannot open Log-Log4perl.ppd";
print FILE $data;
close FILE;
--
-- Mike
Mike Schilli
log...@pe...
|