diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-01 07:26:37 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-03 07:55:51 +0300 |
commit | 6b39def739b0f5174d6c842bd798df179541db60 (patch) | |
tree | e46e55b6a97aed6931e01da4695512735006d532 /riki.md | |
parent | 65c453b9b8499eb4a273bfd6f013608b9af23844 (diff) | |
download | riki-6b39def739b0f5174d6c842bd798df179541db60.tar.gz |
feat: set output file modification times
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -529,3 +529,24 @@ then stdout doesn't contain ".git" then stdout doesn't contain "index.mdwn~" then stdout doesn't contain "#index.mdwn#" ~~~ + +## Output directory tree + +### Output files have source file modification times + +_Requirement: Files in the output directory have the same time stamp +as the corresponding files in the source directory._ + +Note that due to limitations in the Subplot `lib/files` library, our +check for modification times is imprecise. + +~~~scenario +given an installed riki +given file site/index.mdwn from empty +given file site/index.mdwn has modification time 1970-01-01 00:00:00 +given file site/index.jpg from empty +given file site/index.jpg has modification time 1970-01-01 00:00:00 +when I run riki build site output +then file output/index.html has a very old modification time +then file output/index.jpg has a very old modification time +~~~ |