Subject: | Cannot get to work an example in the POD |
Date: | Sun, 20 Nov 2011 15:35:49 +0100 |
To: | bug-Module-Starter-Smart [...] rt.cpan.org |
From: | "K. Wittrock" <KWittrock [...] web.de> |
I want to learn how to build a distribution. I started by reproducing the example that is given in the POD of Module::Starter::Smart under the heading "Placing an existing module into a new distribution". This failed, so I sent the following inquiry to www.perlmonks.com:
----------------------------------------------------
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";
----------------------------------------------------
The reply was "It appears you probably did nothing wrong". If this were true, it would mean that there is a bug either in the code or in the doku of Module::Starter::Smart. I can't really believe this, so I hope you can give me a hint on how I can successfully use your module. I don't like the idea of using Module::Build directly.
Kind regards
Klaus Wittrock