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 | |
by GUIfriend (Sexton) on Nov 16, 2011 at 10:29 UTC | |
by FunkyMonk (Chancellor) on Nov 16, 2011 at 16:55 UTC | |
by GUIfriend (Sexton) on Nov 20, 2011 at 15:04 UTC |