mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 12:54:07 +03:00
shake: be more verbose when updating changelogs
[ci skip]
This commit is contained in:
parent
49523b1611
commit
11208222d4
8
Shake.hs
8
Shake.hs
@ -585,7 +585,9 @@ main = do
|
||||
]
|
||||
liftIO $ if dryrun
|
||||
then putStr newcontent
|
||||
else writeFile out newfile
|
||||
else do
|
||||
writeFile out newfile
|
||||
putStrLn $ out ++ ": updated to " ++ headrev
|
||||
)
|
||||
|
||||
-- [PKG/]CHANGES.md-finalise <- PKG/.version
|
||||
@ -609,7 +611,9 @@ main = do
|
||||
date <- liftIO getCurrentDay
|
||||
let (before, _:after) = break ("# " `isPrefixOf`) $ lines old
|
||||
new = unlines $ before ++ ["# "++version++" "++show date] ++ after
|
||||
liftIO $ writeFile out new
|
||||
liftIO $ do
|
||||
writeFile out new
|
||||
putStrLn $ out ++ ": updated to " ++ version
|
||||
)
|
||||
|
||||
-- VERSION NUMBERS
|
||||
|
Loading…
Reference in New Issue
Block a user