Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Devscripts::Uscan::WatchFile

Name Devscripts::Uscan::WatchFile
Version
Located at /usr/share/perl5
File /usr/share/perl5/Devscripts/Uscan/WatchFile.pm
Is Core No
Search CPAN for this module Devscripts::Uscan::WatchFile
Documentation Devscripts::Uscan::WatchFile
Module Details Devscripts::Uscan::WatchFile

NAME

Devscripts::Uscan::WatchFile - watchfile object for uscan


SYNOPSIS

  use Devscripts::Uscan::Config;
  use Devscripts::Uscan::WatchFile;

  my $config = Devscripts::Uscan::Config->new({
    # Uscan config parameters. Example:
    destdir => '..',
  });
  # You can use Devscripts::Uscan::FindFiles to find watchfiles

  my $wf = Devscripts::Uscan::WatchFile->new({
      config      => $config,
      package     => $package,
      pkg_dir     => $pkg_dir,
      pkg_version => $version,
      watchfile   => $watchfile,
  });
  return $wf->status if ( $wf->status );

  # Do the job
  return $wf->process_lines;


DESCRIPTION

Uscan class to parse watchfiles.


METHODS

new() (Constructor)

Parse watch file and creates the Devscripts::Uscan::WatchLine manpage objects for each line.

Required parameters

config: Devscripts::Uscan::Config object
package: Debian package name
pkg_dir: Working directory
pkg_version: Current Debian package version

Main accessors

watchlines: ref to the array that contains watchlines objects
watch_version: format version of the watchfile

process_lines()

Method that launches Devscripts::Uscan::WatchLine::process() on each watchline.


SEE ALSO

uscan, the Devscripts::Uscan::WatchLine manpage, the Devscripts::Uscan::Config manpage, the Devscripts::Uscan::FindFiles manpage


AUTHOR

uscan was originally written by Christoph Lameter <clameter@debian.org> (I believe), modified by Julian Gilbey <jdg@debian.org>. HTTP support was added by Piotr Roszatycki <dexter@debian.org>. uscan was rewritten in Perl by Julian Gilbey. Xavier Guimard <yadd@debian.org> rewrote uscan in object oriented Perl.


COPYRIGHT AND LICENSE

Copyright 2002-2006 by Julian Gilbey <jdg@debian.org>, 2018 by Xavier Guimard <yadd@debian.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026