[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Porters] "adapting" MakeMaker



On Thu, Dec 09, 1999 at 10:43:38AM -0600, Matthew Langford wrote:
} 
} I'd like to automate some pieces of a non-MPW module build process (eg,
} the test dirs and possibly running tests).  The Makefile.PL seems to come
} up over and over.  I started rooting around, looking at MakeMaker.pm, and
} then found MM_MacOS.pm, which seems to be the perfect place to make my
} changes.
} 
} However, MM_MacOS.pm probably works just fine for MPW-ers.  Is there some
} way to determine if it is running under MPW?  An environment variable,
} perhaps?  If so, we could switch implementations accordingly.

Before you get started down this road, you should look at what Chris
has already done with Makefile.PL processing with cpan-mac.

As for test processing, in quite a few cases a simple do() on test.pl
or t/*.t works adequately.  I had a script that did just that, but I
was never very happy with its performance, since too many special
cases pop up.  I find it better to dump all the tests on MacPerl's
icon and run through them one by one, because then the script is right
there in front of me when something goes wrong.  Test processing is
one place where it would be nice to see improvements.  5.6 and its
emulated fork() may well change things for the better.

} 
} Now, someone will surely ask the obvious:  what good is a Makefile without
} a make command or even a command-line environment?  Well, the plan is to
} approximate the Mac MakeMaker's approximation of a real Makefile.  (say
} that three times real fast!)  Instead of commands, perhaps I can use
} AppleScript.  If that doesn't work, I could emit Perl (and use AppleEvents
} inside this) code, and use a separate runtime executable of Perl (call it
} CodeWarriorBuilder) for that code.
} 
} In this manner, I can approximate forking off processes for the special
} case of only two simultaneous processes--which is all we need.  Let them
} call exit(); we don't need no steenking fork!  :)
} 
} Any thoughts?
} 
} 
} --
} MattLangford 
} 
} 

-- 
Paul Schinder
schinder@pobox.com

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-porters-request@macperl.org