Provided by: lintian_2.48.0_all bug

NAME

       Lintian::Info::Scripts - access to collected scripts data

SYNOPSIS

           use Lintian::Processable;
           my $processable = Lintian::Processable::Binary->new;

DESCRIPTION

       Lintian::Info::Scripts provides an interface to script data for packages.

INSTANCE METHODS

       scripts
           Returns a hashref mapping a FILE to its script/interpreter information (if FILE is a
           script).  If FILE is not a script, it is not in the hash (and callers should use
           exists to test membership to ensure this invariant holds).

           The value for a given FILE consists of a table with the following keys (and associated
           value):

           calls_env
               Returns a truth value if the script uses env (/usr/bin/env or /bin/env) in the
               "#!".  Otherwise it is "undef".

           interpreter
               This is the interpreter used.  If calls_env is true, this will be the first
               argument to env.  Otherwise it will be the command listed after the "#!".

               NB: Some template files have "#!" lines like "#!@PERL@" or "#!perl".  In this
               case, this value will be @PERL@ or perl (respectively).

           name
               Return the file name of the script.  This will be identical to key to look up this
               table.

           Needs-Info requirements for using scripts: scripts

       saved_scripts
           Returns the cached scripts information.

       is_script (PATH)
           True if PATH is a script.

           Needs-Info requirements for using is_script: scripts

AUTHOR

       Originally written by Felix Lechner <felix.lechner@lease-up.com> for Lintian.

SEE ALSO

       lintian(1), Lintian::Collect, Lintian::Collect::Binary, Lintian::Collect::Source