mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 18:29:36 +03:00
;shake setversion: print hledger bounds for review
This commit is contained in:
parent
6fc77ac095
commit
6e2d4ce425
17
Shake.hs
17
Shake.hs
@ -101,13 +101,14 @@ makeinfo = "makeinfo" ++ " --no-warn" -- silence makeinfo warnings - comment ou
|
||||
pandoc = "pandoc --strip-comments"
|
||||
gitcommit = "git commit --allow-empty"
|
||||
|
||||
-- Must support both BSD sed and GNU sed. Tips:
|
||||
-- BSD:
|
||||
-- We should work with both BSD and GNU sed. Tips:
|
||||
-- use [a-z] [0-9] instead of \w \d etc.
|
||||
-- GNU:
|
||||
-- backslash-escape {
|
||||
-- backslash-escape things like: { &
|
||||
sed = "sed -E"
|
||||
|
||||
-- We should work with both BSD and GNU grep.
|
||||
grep = "grep -E"
|
||||
|
||||
-- The kind of markdown used in our doc source files.
|
||||
fromsrcmd = "-f markdown-smart-tex_math_dollars"
|
||||
|
||||
@ -370,9 +371,11 @@ main = do
|
||||
arg = "'s/"++pat++"/"++rpl++"/'"
|
||||
cmd_ Shell sed "-i -e" arg out
|
||||
|
||||
-- tagrelease: \
|
||||
-- $(call def-help,tagrelease, commit a release tag based on $(VERSIONFILE) for each package )
|
||||
-- for p in $(PACKAGES); do git tag -f $$p-$(VERSION); done
|
||||
let pkg = takeDirectory out
|
||||
when (pkg /= "hledger-lib") $ liftIO $ do
|
||||
putStrLn $ out++": hledger bounds are now (improve if needed):"
|
||||
cmd_ Shell grep "'^ *- +hledger.*[<>=]'" out
|
||||
" || [[ $? == 1 ]]" -- ignore no matches, https://unix.stackexchange.com/a/427598
|
||||
|
||||
phony "cabalfiles" $ docabalfiles
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user