git-annex/Build/BuildVersion.hs
Joey Hess a1b55056fc
Make Build/BuildVersion update embedded version number
This way, autobuilders can run it before building, in a tree where
git-annex was already built, and get the current git rev embedded in the
build.

Before, the version number only updated when the setup program was run,
which was up to cabal and not on every build.
2018-06-26 10:36:54 -04:00

12 lines
329 B
Haskell

{- For use by autobuilders, this outputs the version of git-annex that
- is being built, and also updates the Build/Version file so the build
- will report the right version, including the current git rev. -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
import Build.Version
main = do
ver <- getVersion
writeVersion ver
putStr ver