Subject: | glob under cygwin |
Date: | Mon, 8 Dec 2008 13:19:10 -0500 |
To: | <bug-module-starter-pbp [...] rt.cpan.org> |
From: | "Valuet, Olivier" <Olivier.Valuet [...] compuware.com> |
hi there,
i tried to use Module::Starter::PBP under cygwin.
i got the following warning:
$ module-starter --module=My::Module
The Module::Starter::PBP template: t//cygdrive/c/Documents isn't
in the template directory (/cygdrive/c/Documents and
Settings/myspace/.module-starter/PBP)
i put some logs:
$ module-starter --module=My::Module --force
rel: [Module.pm]
abs: [/cygdrive/c/Documents and
Settings/bmooxv0/.module-starter/PBP/Module.pm]
file from glob: /cygdrive/c/Documents
file from glob: and
test file: /cygdrive/c/Documents
rel: [t//cygdrive/c/Documents]
abs: [/cygdrive/c/Documents and
Settings/bmooxv0/.module-starter/PBP/t//cygdrive/c/Documents]
The Module::Starter::PBP XXX template: t//cygdrive/c/Documents
isn't in the template directory (/cygdrive/c/Documents and
Settings/bmooxv0/.module-starter/PBP)
in sub t_guts, i fixed the issue by double-quoting the template_dir
around line 80 (i could not find an option for glob to take care of it):
for my $test_file ( map { s{\A .*/t/}{}xms; $_; } glob
"$self->{template_dir}/t/*") {
=>
for my $test_file ( map { s{\A .*/t/}{}xms; $_; } glob
qq{"$self->{template_dir}"/t/*}) {
I could then run the script to its end (logs removed):
$ module-starter --module=My::Module --force
Created starter directories and files
i am not recorded in cpan and I do not know if there is a code
repository for that module, then only that email as indicated in the pod
documentation.
thx for that module and the book pbp.
regards,
olivier valuet
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant etre confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer a qui que ce soit a moins que vous soyez le destinataire ou une personne designee autorisee. Si vous le receviez par erreur, veuillez nous aviser immediatement et le detruire.
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.