diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-03 04:56:28 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-03 04:56:28 +0000 |
commit | 3b951869505b7f1515b9c4b78f19455a235246bd (patch) | |
tree | e46e55b6a97aed6931e01da4695512735006d532 /riki.md | |
parent | 65c453b9b8499eb4a273bfd6f013608b9af23844 (diff) | |
parent | 6b39def739b0f5174d6c842bd798df179541db60 (diff) | |
download | riki-3b951869505b7f1515b9c4b78f19455a235246bd.tar.gz |
Merge branch 'mtime' into 'main'
feat: set output file modification times
See merge request larswirzenius/riki!30
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 +~~~ |