[Cook] Cook 2.28 patch (largish) to add configurable filesystem timestamp granularity
Scott Finneran
scottf at pacom.com
Thu Jun 14 11:07:52 EST 2007
Hello All,
Attached is a patch to Cook 2.28 in the form of an Aegis change-set for
the Cook development project. Please let me know if posting a regular
patch would be useful.
The time-adjust-back feature of a cook recipe causes Cook to adjust the
modtimes of ingredients to ensure files "appear" to be produced in the
right order even though this may be difficult to tell (because they were
created in the same second). As most file systems have a timestamp
granularity of 1 second, the spacing of these files is usually 1 second
apart.
When building Cook under Cygwin, a granularity of 2 seconds is used to
cover the (increasingly rare?) case of systems running on a FAT32
filesystem. NTFS has a granularity of 1 second, but as there is no easy
way to query the filesystem type at runtime, this is a necessary evil.
This change modifies the default granularity of Cook to be 1 second on
all platforms. It then adds a special variable timestamp_granularity
which may be set to the number of seconds desired to override the default.
A command-line option is also added to the cooktime(1) utility
-TSGranularity to provide the same feature.
The user-guide and man pages are also updated.
Tests are extended to cover the new functionality.
Cheers,
Scott
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tsGranularity.ae
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20070614/3d84d615/attachment.asc>
More information about the Cook-users
mailing list