From 8ac749380d03f3aaef24a4812211e0df200b47ba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 May 2011 22:35:30 +0200 Subject: Release v0.1 --- Build.PL | 1 + Changelog | 2 +- README | 35 ++++++++++++++++++++++------------- bin/hashl | 5 +++++ 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/Build.PL b/Build.PL index 36c75aa..b2ceca4 100644 --- a/Build.PL +++ b/Build.PL @@ -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, diff --git a/Changelog b/Changelog index db471bd..415af31 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,4 @@ -git HEAD +hashl 0.1 - Fri May 06 2011 * Initial release * Create/Update hash database diff --git a/README b/README index ba2badc..89eb0b8 100644 --- a/README +++ b/README @@ -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 +* + +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. diff --git a/bin/hashl b/bin/hashl index 5c386a4..35891f1 100755 --- a/bin/hashl +++ b/bin/hashl @@ -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 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 -- cgit v1.2.3