;shake: note an issue with atomic building of web manuals
[ci skip]
This commit is contained in:
parent
0ce7e811ba
commit
b475ad039a
4
Shake.hs
4
Shake.hs
@ -334,6 +334,10 @@ main = do
|
|||||||
deps <- liftIO $ filter (/= src) . filter (".m4.md" `isSuffixOf`) . map (dir </>) <$> S.getDirectoryContents dir
|
deps <- liftIO $ filter (/= src) . filter (".m4.md" `isSuffixOf`) . map (dir </>) <$> S.getDirectoryContents dir
|
||||||
need $ [src, commonm4, packagem4] ++ deps
|
need $ [src, commonm4, packagem4] ++ deps
|
||||||
when (manual=="hledger") $ need commandmds
|
when (manual=="hledger") $ need commandmds
|
||||||
|
-- add the web page's heading.
|
||||||
|
-- XXX Might be nice to do this atomically with the below, so
|
||||||
|
-- make avoid any double refresh when watch docs with entr/livereload.
|
||||||
|
-- But cmd Shell doesn't handle arguments containing spaces properly.
|
||||||
liftIO $ writeFile out $ "# " ++ heading ++ "\n\n"
|
liftIO $ writeFile out $ "# " ++ heading ++ "\n\n"
|
||||||
cmd Shell
|
cmd Shell
|
||||||
"m4 -P -DMAN -DWEB -I" dir commonm4 packagem4 src "|"
|
"m4 -P -DMAN -DWEB -I" dir commonm4 packagem4 src "|"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user