help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for a new function $(md5 )


From: Pierre Lindenbaum
Subject: patch for a new function $(md5 )
Date: Fri, 23 Jan 2015 14:26:46 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi all,

I hope it's the right place to propose a patch. (I tried to register an account on https://savannah.gnu.org/account/register.php but I cannot beyond that page due to http://savannah.gnu.org/support/?108658 )

find in attachement a patch for a function ($md5 ) that compute the md5 checksum string of the arguments.
It can be used to create filenames.
My sources are also available at https://github.com/lindenb/make/compare/md5
I've added a test, two sources md5.c and md5.h, updated the manual, Makefile.am, ... The original MD5 code comes from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/util/md5.cpp released in the public domain.

$ cat Makefile
SRC=file.c load.c
$(md5 ${SRC}): ${SRC}
    echo $@

$ make
echo 6102b17725943449a8a77bf6cf05e023
6102b17725943449a8a77bf6cf05e023

$ echo -n "file.c load.c" | md5sum
6102b17725943449a8a77bf6cf05e023  -

Pierre L

Attachment: md5.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]