;tools:Shake: drop mandates target, update manual dates automatically
This commit is contained in:
parent
e1458ee8b3
commit
809525302a
5
Shake.hs
5
Shake.hs
@ -70,7 +70,6 @@ usage =
|
|||||||
,"./Shake cmddocs [-c] update all hledger's COMMAND.md and COMMAND.txt files,"
|
,"./Shake cmddocs [-c] update all hledger's COMMAND.md and COMMAND.txt files,"
|
||||||
," used for --help, manuals etc. (run after changing"
|
," used for --help, manuals etc. (run after changing"
|
||||||
," COMMAND.md or command options or general options)"
|
," COMMAND.md or command options or general options)"
|
||||||
,"./Shake mandates update the date shown in some manual formats"
|
|
||||||
,"./Shake manuals [-c] update the packages' embedded info/man/txt manuals"
|
,"./Shake manuals [-c] update the packages' embedded info/man/txt manuals"
|
||||||
,"./Shake changelogs [-c] [-n/--dry-run]"
|
,"./Shake changelogs [-c] [-n/--dry-run]"
|
||||||
," update CHANGES.md files, adding new commits & headings"
|
," update CHANGES.md files, adding new commits & headings"
|
||||||
@ -419,7 +418,8 @@ main = do
|
|||||||
-- NB you should run "Shake cmddocs" before this, it's not automatic (?)
|
-- NB you should run "Shake cmddocs" before this, it's not automatic (?)
|
||||||
phony "manuals" $ do
|
phony "manuals" $ do
|
||||||
need $ concat [
|
need $ concat [
|
||||||
nroffmanuals
|
["mandates"]
|
||||||
|
,nroffmanuals
|
||||||
,infomanuals
|
,infomanuals
|
||||||
-- ,[infodir]
|
-- ,[infodir]
|
||||||
,txtmanuals
|
,txtmanuals
|
||||||
@ -430,7 +430,6 @@ main = do
|
|||||||
concat [commandmds, packagemandatem4s, nroffmanuals, infomanuals, infodirentries, txtmanuals] -- infodir
|
concat [commandmds, packagemandatem4s, nroffmanuals, infomanuals, infodirentries, txtmanuals] -- infodir
|
||||||
|
|
||||||
-- Update the dates to show in man pages, to the current month and year.
|
-- Update the dates to show in man pages, to the current month and year.
|
||||||
-- Currently must be run manually when needed.
|
|
||||||
-- Dates are stored in PKG/.date.m4, and are committed along with manuals by Shake manuals -c.
|
-- Dates are stored in PKG/.date.m4, and are committed along with manuals by Shake manuals -c.
|
||||||
phony "mandates" $ do
|
phony "mandates" $ do
|
||||||
date <- chomp . fromStdout <$> (cmd Shell "date +'%B %Y'" :: Action (Stdout String))
|
date <- chomp . fromStdout <$> (cmd Shell "date +'%B %Y'" :: Action (Stdout String))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user