[Omake] omake equivalent of make's $?
Aleksey Nogin
anogin at hrl.com
Thu Jul 19 14:28:26 PDT 2007
On 19.07.2007 09:16, Bryce Nichols wrote:
> I'll look into it more later, but let me know if there's a simple way
> that I could leverage omake's cache to do the same thing, but based on
> digests rather than just dates.
Bryce,
I believe you just need to go along the lines of Jason's copy-if-newer
function.
Aleksey
>> For installing, you may wish to use file digests instead of
>> modification times. This will be faster if the files are large.
>>
>> Shell. +=
>> copy-if-newer(argv) =
>> src = $(nth 0, $(argv))
>> dst = $(nth 1, $(argv))
>> if $(not $(equal $(digest-optional $(dst)), $(digest $(src))))
>> cp $(src) $(dst)
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list