Skip to content

rsindlin/Module-Build-CleanInstall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Module::Build::CleanInstall - Subclass of Module::Build which removes the old module before installing the new one

SYNOPSIS

use strict;
use warnings;

use Module::Build::CleanInstall;
my $builder = Module::Build::CleanInstall->new(
  ... # same as Module::Build
);
$builder->create_build_script;

DESCRIPTION

Module::Build::CleanInstall is a subclass of Module::Build with one additional feature, before upgrading the module from and old version to a new one, it first removes the files installed by the previous version. This is useful especially when the new version will not contain some files that the old one did, and it is necessary that those files do not remain in place.

Since it is a subclass of Module::Build it is used exactly like that module. This module does provide an additional action uninstall, but it need not be called separately; the action install will call it when invoked.

The uninstalling is done by removing the files in the installed module's packlist which is created when the module is first installed.

SEE ALSO

Module::Build
File::ShareDir::Tarball

SOURCE REPOSITORY

http://github.com/jberger/Module-Build-CleanInstall

AUTHOR

Joel Berger, <[email protected]>

ADDITIONAL CONTRIBUTIONS

Randall Sindlinger, <[email protected]>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Joel Berger

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

About

A Module::Build subclass that uninstalls before installing

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 100.0%