toolhash - Generate and hash files to avoid installation of build tools
toolhash --in foo.c --out foo.o --cmd gcc -c -o foo.o foo.c
Toolhash is used to install Verilog-Perl and other tools. It stores a hash of generated files (aka the cons make utility) for distribution to avoid building those files from scratch.
The hash isn't stored as part of the filename, so that the MANIFEST can remain constant.
Command and arguments to run. All further arguments are passed to the command.
Specify location of generated file cache, defaults to "gen".
Prefix for output files, or defaults to first --cmd argument.
Print hit/miss messages.
Disable hashing first num-arg components of the command. This is used to avoid commands like "/usr/bin/perl ...." from hash missing when the Perl version and thus the path changes.
Command to run to get --version.
Write the cache, but do not read from it.
Copyright 2010-2014 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Wilson Snyder <email@example.com>