mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 18:29:36 +03:00
shake: be GNU sed compatible, fixing defs.m4 updating
[ci skip]
This commit is contained in:
parent
1f9927d617
commit
2bd0d27976
10
Shake.hs
10
Shake.hs
@ -86,7 +86,13 @@ usage = unlines
|
|||||||
groff = "groff"
|
groff = "groff"
|
||||||
makeinfo = "makeinfo"
|
makeinfo = "makeinfo"
|
||||||
pandoc = "pandoc"
|
pandoc = "pandoc"
|
||||||
sed = "sed -E" -- assume only the features of BSD sed
|
|
||||||
|
-- Must support both BSD sed and GNU sed. Tips:
|
||||||
|
-- BSD:
|
||||||
|
-- use [a-z] [0-9] instead of \w \d etc.
|
||||||
|
-- GNU:
|
||||||
|
-- backslash-escape {
|
||||||
|
sed = "sed -E"
|
||||||
|
|
||||||
-- The kind of markdown used in our doc source files.
|
-- The kind of markdown used in our doc source files.
|
||||||
fromsrcmd = "-f markdown-smart-tex_math_dollars"
|
fromsrcmd = "-f markdown-smart-tex_math_dollars"
|
||||||
@ -515,7 +521,7 @@ main = do
|
|||||||
let versionfile = takeDirectory out </> ".version"
|
let versionfile = takeDirectory out </> ".version"
|
||||||
need [versionfile]
|
need [versionfile]
|
||||||
version <- ((head . words) <$>) $ liftIO $ readFile versionfile
|
version <- ((head . words) <$>) $ liftIO $ readFile versionfile
|
||||||
cmd_ Shell sed "-i -e" ("'s/(_version_}}, *){{[^}]+/\\1{{"++version++"/'") out
|
cmd_ Shell sed "-i -e" ("'s/(_version_}}, *)\{\{[^}]+/\\1{{"++version++"/'") out
|
||||||
|
|
||||||
-- PKG/package.yaml <- PKG/.version
|
-- PKG/package.yaml <- PKG/.version
|
||||||
"hledger*/package.yaml" %> \out -> do
|
"hledger*/package.yaml" %> \out -> do
|
||||||
|
Loading…
Reference in New Issue
Block a user