fold Build/SysConfig.hs into BuildInfo via include
This avoids warnings from stack about the module not being listed in the cabal file. So, the generated file is also renamed to Build/SysConfig. Note that the setup program seems to be cached despite these changes; I had to cabal clean to get cabal to update it so that Build/SysConfig was written. This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
parent
ad6683e722
commit
308cd1383c
24 changed files with 64 additions and 63 deletions
|
@ -8,7 +8,7 @@
|
|||
module Command.Version where
|
||||
|
||||
import Command
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
import qualified BuildInfo
|
||||
import Annex.Version
|
||||
import BuildInfo
|
||||
import Types.Key
|
||||
|
@ -61,7 +61,7 @@ showVersion = do
|
|||
|
||||
showPackageVersion :: IO ()
|
||||
showPackageVersion = do
|
||||
vinfo "git-annex version" SysConfig.packageversion
|
||||
vinfo "git-annex version" BuildInfo.packageversion
|
||||
vinfo "build flags" $ unwords buildFlags
|
||||
vinfo "dependency versions" $ unwords dependencyVersions
|
||||
vinfo "key/value backends" $ unwords $
|
||||
|
@ -70,7 +70,7 @@ showPackageVersion = do
|
|||
|
||||
showRawVersion :: IO ()
|
||||
showRawVersion = do
|
||||
putStr SysConfig.packageversion
|
||||
putStr BuildInfo.packageversion
|
||||
hFlush stdout -- no newline, so flush
|
||||
|
||||
vinfo :: String -> String -> IO ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue