lencode - encode a (long) value into a (short) code for retrieval with ldecode(1) within a open-lmake job
lencode association_file context [min_length]
lencode may be used to create (or retrieve if already present) an association between a value (typically rather large) and a short code. This association must be done before ldecode(1) is called with the code (with same assocation_file and context) to retrieve the corresponding value.
The value must be passed to stdin. The generated (or retrieved) code corresponding to the value is output on stdout.
If generated, the code is generated after a checksum computed on the passed value in hexadecimal, with a length at least min_length (default is 1), but may be longer in case of conflict.
association_file (symbolic links are followed) may be either a source file within repo or a dir (ending with /’’) that lies within a source dir.
Associations are usually created using