reuse Build.Version to generate version
This commit is contained in:
parent
463bdd9e22
commit
e651b29e90
2 changed files with 4 additions and 1 deletions
|
@ -67,3 +67,6 @@ cabalSetup cabalfile = do
|
|||
| otherwise = s
|
||||
where
|
||||
fullfield = field ++ ": "
|
||||
|
||||
main :: IO ()
|
||||
main = putStr =<< getVersion
|
||||
|
|
2
debian/create-standalone-changelog
vendored
2
debian/create-standalone-changelog
vendored
|
@ -9,7 +9,7 @@ umask 022
|
|||
|
||||
# This is the same method that the configure script uses when git-annex is
|
||||
# built from git master.
|
||||
ANNEX_VERSION=$(git log -n 1 --format=format:'%ci %h'| sed -e 's/-//g' -e 's/ .* /-g/')
|
||||
ANNEX_VERSION=$(runghc Build/Version.hs)
|
||||
|
||||
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
|
||||
|
||||
|
|
Loading…
Reference in a new issue