Add rule ChecksumFileSHA256

This commit is contained in:
Ingo Weinhold
2013-07-06 02:19:51 +02:00
parent 46686fe6c0
commit 531a3d42bc
+7
View File
@@ -437,3 +437,10 @@ rule DownloadFile file : url : source
return $(file) ;
}
actions ChecksumFileSHA256
{
$(HOST_SHA256) $(2) | sed -r 's,([^[:space:]]*).*,\1,' > $(1)
# The sed part is only necessary for sha256sum, but it doesn't harm for
# sha256 either.
}