;tools: Shake setversion: do hledger-install separately
This commit is contained in:
parent
58d461d5ee
commit
284bb7e2e8
11
Shake.hs
11
Shake.hs
@ -66,6 +66,7 @@ usage =
|
|||||||
,"./Shake setversion [VER] [PKGS] [-c]"
|
,"./Shake setversion [VER] [PKGS] [-c]"
|
||||||
," update versions in source files to */.version or VER"
|
," update versions in source files to */.version or VER"
|
||||||
," and update */*.cabal files"
|
," and update */*.cabal files"
|
||||||
|
,"./Shake hledger-install-version" update some version strs in hledger-install"
|
||||||
,"./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)"
|
||||||
@ -290,8 +291,7 @@ main = do
|
|||||||
-- Update version strings in all packages, or just the ones specified.
|
-- Update version strings in all packages, or just the ones specified.
|
||||||
-- If a version number is provided as first argument, save that in .version files first.
|
-- If a version number is provided as first argument, save that in .version files first.
|
||||||
-- Then update various source files to match what's in their nearby .version file, such as:
|
-- Then update various source files to match what's in their nearby .version file, such as:
|
||||||
-- package.yaml files, .cabal files (regenerating from package.yaml), .version.m4 files,
|
-- package.yaml files, .cabal files (regenerating from package.yaml), .version.m4 files.
|
||||||
-- hledger-install.sh, etc.
|
|
||||||
-- With -c, also commit the changes.
|
-- With -c, also commit the changes.
|
||||||
-- See also CONTRIBUTING.md > Version numbers.
|
-- See also CONTRIBUTING.md > Version numbers.
|
||||||
phony "setversion" $ do
|
phony "setversion" $ do
|
||||||
@ -310,7 +310,6 @@ main = do
|
|||||||
-- update source files depending on .version in the specified packages
|
-- update source files depending on .version in the specified packages
|
||||||
let dependents = map (</> ".version.m4") specifiedpkgs
|
let dependents = map (</> ".version.m4") specifiedpkgs
|
||||||
++ map (</> "package.yaml") specifiedpkgs
|
++ map (</> "package.yaml") specifiedpkgs
|
||||||
++ ["hledger-install/hledger-install.sh"]
|
|
||||||
need dependents
|
need dependents
|
||||||
|
|
||||||
-- and maybe commit them
|
-- and maybe commit them
|
||||||
@ -328,9 +327,9 @@ main = do
|
|||||||
|
|
||||||
gencabalfiles
|
gencabalfiles
|
||||||
|
|
||||||
-- Update some of the version strings in hledger-install/hledger-install.sh (not all).
|
-- Update some of the version strings in hledger-install/hledger-install.sh. Manual fixup will be needed.
|
||||||
-- Also sets the script version based on today's date.
|
-- Not done by setversion since that is used on master, where the production hledger-install is.
|
||||||
phony "hledger-install/hledger-install.sh" $ do
|
phony "hledger-install-version" $ do
|
||||||
let versionfile = ".version"
|
let versionfile = ".version"
|
||||||
let out = "hledger-install/hledger-install.sh"
|
let out = "hledger-install/hledger-install.sh"
|
||||||
version <- ((headDef (error $ "failed to read " <> versionfile) . words) <$>) $ liftIO $ readFile versionfile
|
version <- ((headDef (error $ "failed to read " <> versionfile) . words) <$>) $ liftIO $ readFile versionfile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user