14 Nov 2012 04:13:58 UTC
- Distribution: Module-Build-CleanInstall
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (5646 / 24 / 0)
- KwaliteeBus factor: 1
- 68.18% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity24 month
- Download (3.4KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Module::Build::CleanInstall - Subclass of Module::Build which removes the old module before installing the new one
use strict; use warnings; use Module::Build::CleanInstall; my $builder = Module::Build::CleanInstall->new( ... # same as Module::Build ); $builder->create_build_script;
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
installwill 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.
Joel Berger, <firstname.lastname@example.org>
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.
Module Install Instructions
To install Module::Build::CleanInstall, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Module::Build::CleanInstall
For more information on module installation, please visit the detailed CPAN module installation guide.