Created
January 25, 2010 18:27
-
-
Save chrisa/286084 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # setup for CPAN, not CPANPLUS: | |
| $ENV{PERL_AUTOINSTALL_PREFER_CPAN} = 1; | |
| # unattended mode | |
| $ENV{PERL_MM_USE_DEFAULT} = '1'; | |
| # Only use core and site modules | |
| use FindBin; | |
| use local::lib '--self-contained', "$FindBin::Bin/siteperl"; | |
| use lib "$FindBin::Bin/siteperl"; | |
| # Load the Module::Install bundled in ./inc/ | |
| use lib '.'; | |
| use inc::Module::Install; | |
| # Define metadata | |
| name 'MyApp'; | |
| all_from 'modules/MyApp.pm'; | |
| requires 'DateTime'; | |
| requires ... etc | |
| auto_install; | |
| WriteAll; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment