Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^14: Build.PL versus Makefile.PL

by xdg (Monsignor)
on Feb 11, 2007 at 15:31 UTC ( [id://599467]=note: print w/replies, xml ) Need Help??


in reply to Re^13: Build.PL versus Makefile.PL
in thread Build.PL versus Makefile.PL

Now that Andreas is actively working on CPAN.pm and taking patches, it's tempting to add that to CPAN.pm.

my $make = $Config{make} . $Config{_exe}; my @path = split $Config{path_sep}, $ENV{PATH}; unless ( grep { -x File::Spec->catfile( $_, $make ) } @path ) { # alien download and install }

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^15: Build.PL versus Makefile.PL
by demerphq (Chancellor) on Feb 11, 2007 at 18:12 UTC

    Its fairly quick and dirty, but check out alien_nmake.pl

    ---
    $world=~s/war/peace/g

Re^15: Build.PL versus Makefile.PL
by BrowserUk (Patriarch) on Feb 11, 2007 at 19:40 UTC

    If this goes ahead, please do not make it look for nmake.exe in some particular path. Rather, just try invoking it via the shell (eg.

    my $banner = `nmake /?`;
    or similar), and don't do the download if it already exists in the path.

    The freely distributable version of nmake (v1.5) is useless for building many applications that require later versions, and having the installed later version blindly and silently overwritten or preempted by an unnecessary "clever hack" is intensely frustrating.

    Personally, I think it would be much better to simply output a clear message if it cannot be found:

    nmake.exe not found. Either make this available via your path variable, or download it from ...

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Rather, just try invoking it via the shell

      This is what alient_nmake.pl does, unless you use the --force argument it wont install if nmake is found.

      ---
      $world=~s/war/peace/g

Re^15: Build.PL versus Makefile.PL
by dragonchild (Archbishop) on Feb 11, 2007 at 17:30 UTC
    Sounds like a patch!

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://599467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 17:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found