Re: [Module::Build] ./Build on Win98
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-02-23 04:32:25
|
Randy W. Sims wrote: > Dr Bean wrote: >> So it looks like it's OK on Win98. > > Great. This should get me to a final solution with a little reworking. I > also just realized that my initial attempts depend on $0 which wont work > for our API clients; I'll get this cleaned up. This is hopefully fixed now in CVS, and a new snapshot is up also[1] if I can beg one more test. We now differentiate syntax of the command to delete ourself depending on Win9x or WinNT variant. Also, appending the command to delete ourself to the 'Build.bat' means that the old 'perl Build realclean' quit working. It was necessary to differentiate between the two ways of invoking Build. The best option I could think of was to use pl2bat to change the way it calls perl by appending an extra option (--build_bat). If this option is present, the Build.bat file was executed, so we can append the self-deletion command to that file. Otherwise, 'perl Build' was called, so it's safe to delete the file from within M::B. This also takes care of the issue of other programs calling realclean from the API. Randy. 1. <http://thepierianspring.org/perl/Module-Build.tar.gz> |