Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SCAN-PREREQS-CPANFILE(User Contributed Perl DocumentatSCAN-PREREQS-CPANFILE(1)

NAME
       scan-prereqs-cpanfile - Scan prerequisite modules and generate CPANfile

SYNOPSIS
	   % scan-prereqs-cpanfile

	       --diff=META.json	     # Generate	diff from META.json
	       --diff=cpanfile	     # Generate	diff from cpanfile
	       --ignore=extlib/

DESCRIPTION
       This script scans prerequisite modules from your	code, and generate
       CPANfile.  You can also list missing prerequisite modules.

SCANNING RULES
       Used modules in `Build.PL` or `Makefile.PL` as 'test' requires
       Used modules in `t/` as 'test' requires
       Used modules in `xt/`, `benchmark/` and `author/` as 'develop' requires
       Used modules in other directories as 'runtime' requires

OPTIONS
       --diff
		   --diff=META.json	 # Generate diff from META.json
		   --diff=cpanfile	 # Generate diff from cpanfile

	   Compare the scanning	result with META.json, META.yml	or cpanfile.
	   With	this option, scan-prereqs-cpanfile displays missing
	   prerequisite	modules	only.

       --ignore
	       --ignore=tools/

	   Ignore some directories.

       --include-empty
	   By default, phases without any prereqs are not dumped, By giving
	   this	option,	cpanfile will have an empty block such as:

	       on test => sub {

	       };

	   Defaults to false.

       --scan-test-requires (EXPERIMENTAL)
	   Scan	test files and include the modules specified by	Test::Requires
	   as 'develop'	requires.

AUTHOR
       Tokuhiro	Matsuno

SEE ALSO
       Module::CPANfile, Perl::PrereqScanner::Lite

perl v5.32.1			  2015-02-26	      SCAN-PREREQS-CPANFILE(1)

NAME | SYNOPSIS | DESCRIPTION | SCANNING RULES | OPTIONS | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=scan-prereqs-cpanfile&sektion=1&manpath=FreeBSD+13.1-RELEASE+and+Ports>

home | help