Fetch perlbrew:
> curl -L https://install.perlbrew.pl | bashOnce installed, add "source ~/perl5/perlbrew/etc/bashrc" to .bashrc.
Install local version of Perl:
> perlbrew install perl-5.6.16
> perlbrew switch perl-5.6.16
Install cpanm
> perlbrew install-cpanmInstall dependencies into local perl
> cpanm install Module::Build
> cpanm --installdeps .
> cpanm install Software::LicenseHack on project and test locally:
> perl Build.PL && ./Build && ./Build testIf it has been a while since the last version, update dependencies:
> cpan -uGenerate 'Build' script:
> perl Build.PLEdit MANIFEST.SKIP if needed, add #!include_default to top. Be sure not to check in the expanded version into git.
> vi MANIFEST.SKIP
> ./Build manifestBump version number -- Build.PL uses dist_version_from to find it:
> vi lib/LabKey/Query.pmUpdate copyright year (LICENSE will be autogenerated):
> vi lib/LabKey/Query.pmUpdate Changes file:
> vi ChangesGenerate README.pod for nice viewing on github:
> podselect lib/LabKey/Query.pm > README.podClean up 'Build' and distribution artifacts:
> ./Build distcleanGenerate metadata files and dist (META.yml, META.json, LICENSE, LabKey-Query-0.00.tar.gz):
> perl Build.PL
> ./Build distCommit, tag, push:
> git commit
> git tag v<version> # e.g. v1.06
> git push --tags -u origin masterUpload the distro using CPAN::Uploader
> cpanm install CPAN::Uploader
> cpan-upload LabKey-Query-v<version>.tar.gz --user labkeyFun sites: