On Sun, Feb 02, 2003 at 08:23:04PM +0100, Paul Johnson wrote: > > > I have a series of modules that I would like to distribute for public > > use. These modules convert RTF to XML, and they are all contained in a > > folder called rtf. > > > > I could have the user intall every thing manually, but that seems like > > it is kind of a hack. I would like for a user to be able to type > > > > make > > make install > > make test > > > > and have everything working right. > > You need to create a Makefile.PL. For documentation on how to do this > see: > > perldoc ExtUtils::MakeMaker >
Thanks. I have run h2xs -XA -n rtf This creates a skeleton Makefile.pl. I checked out an example Makefile.pl from a module called HTML-Format. Theis person put all the modules in a directory called HTML, then put this directory in a directory called lib. So the Makefile looks like: WriteMakefile( NAME => 'HTML-Format', VERSION_FROM => 'lib/HTML/Formatter.pm', PREREQ_PM => { 'HTML::Element' => 1.44, 'Font::AFM' => 1.17, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, ); In my case, I believe I just need to do the same thing, except change the line VERSION_FROM => 'lib/HTML/Formatter.pm', to VERSION_FROM => 'lib/rtf/some_file_with_a_version', ? In additon, I would delete the line starting wiwth PREREQ_PM, since my modules require no other modules. However, how would I tell the Makefile.pl to install an executable, and how do I put the datafile in the right place? This datafile contains the data for character encoding. Obviously, the main script needs to know where to find this data file. Last, there is a dtd. Once my module converts the RTF to XML, in writes a path to the dtd. Again, the script needs to put this dtd some place, and needs to know where it is. Thanks Paul -- ************************ *Paul Tremblay * *[EMAIL PROTECTED]* ************************ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]