Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Friday January 07, 2005
03:57 PM

Working with both Build.PL and Makefile.PL

[ #22622 ]

I call this script reload. It's very handy when I'm working with a variety of codebases that use both Module::Build and ExtUtils::MakeMaker.

#!/bin/bash
if [ -f Build.PL ]; then
    if [ -f Build ]; then
        ./Build realclean
    fi
    perl Build.PL && ./Build && ./Build test
elif [ -f Makefile.PL ]; then
    if [ -f Makefile ]; then
        make realclean
    fi
    perl Makefile.PL && make &&  make test
else
    echo Nothing to reload!
fi

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.