[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RFE: add md5sum as a built-in
From: |
Bruno Haible |
Subject: |
RFE: add md5sum as a built-in |
Date: |
Thu, 27 May 2010 03:22:48 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
It would be useful to have md5sum as a built-in macro in m4.
For example,
md5sum(`frankie goes to hollywood') => 5b8a258083161281a1ad2c25d1505856
The first use of this function would be to map file names to shell variables
in a way similar to AS_TR_SH of autoconf, except that it would not be
subject to collisions:
AS_TR_SH([sys/file.h]) and AS_TR_SH([sys_file.h]) collide.
The second use would be for content based addressing in general, in the same
way as 'git' is based on a one-way hash function at the lowest level.
In theory it would be possible to use the 'esyscmd' built-in. But that's
likely too slow when you use the function in a number of places. (For
my first use-case, there would be 300 invocations when autoconf is asked
to process a particular, real-life configure.ac file.)
Bruno
- RFE: add md5sum as a built-in,
Bruno Haible <=