Yasutaka ATARASHI (新 康孝) > App-installdeps-v0.0.2 > installdeps

Download:
App-installdeps-v0.0.2.tar.gz

Annotate this POD

View/Report Bugs
Source   Latest Release: App-installdeps-v0.0.3

NAME ^

installdeps - A tiny script to install dependent modules

VERSION ^

version v0.0.2

SYNOPSIS ^

installdeps -h

installdeps [-n] [-i <command>] [-x <regex>] [-r] [-u] <files_or_dirs>...

  # show POD help
  installdeps -h

  # dry-run (only shows target modules)
  # multiple files can be specified
  installdeps -n *.pl

  # specify install command
  # defaults to cpanm
  # the command following module names is invoked like
  # cpanm -f Foo::Bar Zot Qux
  installdeps -i 'cpanm -f' *.pl

  # can specify directories
  # exclude optional modules (-r) and include installed modules (-u)
  # additionally, exclude Acme::*. NOTE that // is not necessary.
  installdeps -ru -x ^Acme:: lib t

DESCRIPTION ^

This is a tiny script to install dependent modules. If you upload your scripts or modules to PAUSE, you can install dependent modules by cpanm/cpan/cpanp. However, it is almost impossible and meaningless to upload all your daily-use scripts.

This script scans sources to detect dependent modules and install them. Without options, modules not yet installed and no matter whether it is used in eval context or not are considered.

OPTIONS ^

-h

Shot this POD help

-n

Dry run (Do not install modules actually).

-i <command>

Specify install command. Defaults to cpanm.

-x <regex>

Specify regex for exclusion. If module names match to this regex, they are excluded from install targets.

-r

Exclude optional modules, which are used in eval context.

-u

Include modules installed already.

AUTHOR ^

Yasutaka ATARASHI <yakex@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Yasutaka ATARASHI.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: