develooper Front page | perl.dbi.users | Postings from February 2001

Replace DBI-1.14 Makefile.PL post_initialize()

Thread Previous | Thread Next
From:
Michael A. Chase
Date:
February 16, 2001 15:22
Subject:
Replace DBI-1.14 Makefile.PL post_initialize()
Message ID:
014e01c0986f$489d8b10$193a243f@ca.boeing.com
The current post_initialize() uses the external command 'find' to search the
perl library tree for old versions of DBI and DBD drivers.  This won't work
on most Win32 machines and probably won't work in some other platforms
either.

It also uses <*.xst> to identify some of the files used to build DBD drivers
and explicitly lists the C header (.h) files.  Because glob() depends on csh
in most UNIX builds it is vulnerable to absent or invalid csh's.  A fixed
list of the header files is vulnerable to new header files not being made
available for DBD builds.

The modified subroutine (patch file attached) uses File::Find for both
operations.  In addition, reports all .h and .xst files, not just the ones
explicitly listed.

I changed the old file and directory search regular expression so it accepts
all files in the DBD directories, not just the DBD directories themselves.
The original match expression is present, but is commented out in case that
behavior is preferred.

--
Mac :})
** I normally forward private database questions to the DBI mail lists. **
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About