diff options
-rw-r--r-- | Build.PL | 1 | ||||
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | README | 35 | ||||
-rwxr-xr-x | bin/hashl | 5 |
4 files changed, 29 insertions, 14 deletions
@@ -17,6 +17,7 @@ my $build = Module::Build->new( 'perl' => '5.10.0', 'autodie' => 0, 'Digest::SHA' => 0, + 'File::Copy' => 0, 'File::Find' => 0, 'Getopt::Long' => 0, 'IO::Handle' => 0, @@ -1,4 +1,4 @@ -git HEAD +hashl 0.1 - Fri May 06 2011 * Initial release * Create/Update hash database @@ -1,19 +1,28 @@ -hashl - Hash parts of files, use that for duplicate avoidance +hashl - Create database with partial file hashes, check if other files are in it +-------------------------------------------------------------------------------- -Requires: - - perl version 5.10 or newer - - The perl modules Digest::SHA and Time::Progress +* <http://derf.homelinux.org/projects/hashl/> + +Dependencies +------------ + + * perl version 5.10 or newer + * Digest::SHA + * Time::Progress Installation +------------ + +$ perl Build.PL +$ perl Build +$ sudo perl Build install + +You can then run 'man hashl' for more information. -> perl Build.PL -> ./Build -> ./Build test -> sudo ./Build install +Testing +------- -See also the Module::Build documentation. +$ perl Build test -Extra modules required for testing: - - Test::Compile - - Test::More - - Test::Pod +Note that this will require the Test::More, Test::Compile and Test::Pod +modules. @@ -37,6 +37,7 @@ GetOptions( 'd|database=s' => \$db_file, 'n|no-progress' => sub { $show_progress = 0 }, 's|read-size=i' => sub { $read_size = $_[1] * 1024 }, + 'V|version' => sub { say "hashl version ${VERSION}"; exit 0 }, ) or usage(); if (substr($db_file, 0, 1) ne '/') { @@ -485,6 +486,10 @@ Change size of the part of each file which is hashed. By default, B<hashl> hashes the first 4 MiB. Note that this option only makes sense when using C<< hashl update >> to create a new database. +=item B<-V>|B<--version> + +Print version information. + =back =head1 CONFIGURATION |