build.hashers.mtime
- Special meaning of keys?
- No, but they must have an associated file name.
This simple hasher will record the modification times of a key and mark it as dirty if it changes.
Usage
local Hasher = require "build.hashers.mtime" (Posix_File_System, File_Of_Key)
local hasher = Hasher.create(posix_file_system)Posix_File_Systemmust be the POSIX file system structure to use.File_Of_Keymust be a function that will be called likeFile_Of_Key(key). It must return the filename of the file associated with the key, ornilif the key has no filename.posix_file_systemmust be thePosix_File_Systeminstance to use.
Notes
Same note from the mtime rebuilder about file-less keys applies here.