Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Problem with use of Module::Starter::Smart

by GUIfriend (Sexton)
on Nov 15, 2011 at 19:36 UTC ( [id://938241]=perlquestion: print w/replies, xml ) Need Help??

GUIfriend has asked for the wisdom of the Perl Monks concerning the following question:

I want to learn how to build a distribution. As a first step, I tried to reproduce the example that is given in the POD of Module::Starter::Smart under the Heading Placing an existing module into a new distribution. My result is exactly as shown in the POD. However a closer look shows that my distribution contains a template instead of the contents of my module.

I hope that somebody can tell me what I did wrong. I use openSUSE 11.1 and Module::Starter::Smart version 0.0.2 (installed via CPANplus a few weeks ago).

Here is the script that I used to create my distribution:

test ! -f ~/Sudoku/tstBaz/Foo/Baz.pm && echo 'No test module!' && exit + 1 cd ~/Sudoku/tstBaz rm -R lib rm -Rf Globbo rm -Rf tstdistr mkdir lib cp -R Foo ./lib ls -R ./lib module-starter --distro=Globbo --module=Foo::Baz \ --builder='Module::Build' \ --author="Klaus Wittrock" --email=myemail@web.de ls -R Globbo cd Globbo perl Build.PL ./Build test ./Build dist cd .. mkdir tstdistr cd tstdistr tar -axf ../Globbo/Foo-Baz-0.01.tar.gz cd Foo-Baz-0.01 perl Build.PL --install_base ~/Sudoku/tstBaz/tstdistr ./Build test ./Build install cd .. ls -l ~/Sudoku/tstBaz/Foo/Baz.pm lib/perl5/Foo/Baz.pm

And this is my test module:

package Foo::Baz; use strict; use warnings; print "Start Baz\n";

Replies are listed 'Best First'.
Re: Problem with use of Module::Starter::Smart
by Anonymous Monk on Nov 15, 2011 at 23:42 UTC

    Module::Starter::Smart doesn't appear in your "script"

    Here is mine

    Whoops, that didn't work. It appears you probably did nothing wrong

    In short, Module::Starter::Simple doesn't work, not surprising, since it never tests its own functionality

    You can accomplish what it was supposed to accomplish by judicious use of cp command, say

    module-starter --distro=Globbo ... cp -R lib Globbo cp -R t Globbo cd Globbo # perl Makefile.PL # make manifest perl Build.PL build manifest

      Hi Anonymous Monk,

      you wrote: It appears you probably did nothing wrong. Thank you very much for your workaround. I'm optimistic it will bring me to my goal.

      There is obviously an error either in the code or in the doku of Module::Starter::Smart. Probably I will send a bug report on this.

      Kind regards

      GUIfriend

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-25 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found