summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build.PL1
-rw-r--r--Changelog2
-rw-r--r--README35
-rwxr-xr-xbin/hashl5
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
+* <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.
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<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