a1b55056fc
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.
12 lines
329 B
Haskell
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
|