Skip to content

Instantly share code, notes, and snippets.

@kits
Created March 14, 2012 07:47
Show Gist options
  • Save kits/2034922 to your computer and use it in GitHub Desktop.
Save kits/2034922 to your computer and use it in GitHub Desktop.
README.pod in top directory
$ h2xs -XAn Foo
Defaulting to backwards compatibility with perl 5.12.2
If you intend this module to be compatible with earlier perl versions, please
specify a minimum perl version with the -b option.
Writing Foo/lib/Foo.pm
Writing Foo/Makefile.PL
Writing Foo/README
Writing Foo/t/Foo.t
Writing Foo/Changes
Writing Foo/MANIFEST
$ cd Foo
$ ln -s lib/Foo.pm README.pod
$ ls -l
合計 8
drwxr-xr-x+ 1 kits none 0 3月 14 16:37 ./
drwxrwxrwx+ 1 kits none 0 3月 14 16:36 ../
-rw-r--r-- 1 kits none 140 3月 14 16:36 Changes
drwxr-xr-x+ 1 kits none 0 3月 14 16:36 lib/
-rw-r--r-- 1 kits none 509 3月 14 16:36 Makefile.PL
-rw-r--r-- 1 kits none 55 3月 14 16:36 MANIFEST
-rw-r--r-- 1 kits none 1153 3月 14 16:36 README
lrwxrwxrwx 1 kits none 10 3月 14 16:37 README.pod -> lib/Foo.pm
drwxr-xr-x+ 1 kits none 0 3月 14 16:36 t/
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
$ make
cp README.pod blib/lib/README.pod
cp lib/Foo.pm blib/lib/Foo.pm
Manifying blib/man3/README.3pm
Manifying blib/man3/Foo.3pm
$ make test
PERL_DL_NONLAZY=1 /home/kits/perl5/perlbrew/perls/perl-5.12.2/bin/perl5.12.2.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Foo.t ..
t/Foo.t .. 1/1
t/Foo.t .. ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.05 usr 0.03 sys + 0.17 cusr 0.06 csys = 0.31 CPU)
Result: PASS
$ make install
Installing /home/kits/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/Foo.pm
Installing /home/kits/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/README.pod
Installing /home/kits/perl5/perlbrew/perls/perl-5.12.2/man/man3/Foo.3pm
Installing /home/kits/perl5/perlbrew/perls/perl-5.12.2/man/man3/README.3pm
Appending installation info to /home/kits/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/cygwin-thread-multi-64int/perllocal.pod
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment