rename var
This commit is contained in:
parent
3d29f50415
commit
629dd2767c
2 changed files with 3 additions and 5 deletions
|
@ -82,17 +82,15 @@ testCp k option = TestCase cmd $ testCmd k cmdline
|
||||||
cmd = "cp " ++ option
|
cmd = "cp " ++ option
|
||||||
cmdline = cmd ++ " " ++ testFile ++ " " ++ testFile ++ ".new"
|
cmdline = cmd ++ " " ++ testFile ++ " " ++ testFile ++ ".new"
|
||||||
|
|
||||||
{- For release builds, VERSION_FROM_CHANGELOG makes it use just the most
|
|
||||||
- recent version from the changelog. -}
|
|
||||||
isReleaseBuild :: IO Bool
|
isReleaseBuild :: IO Bool
|
||||||
isReleaseBuild = isJust <$> catchMaybeIO (getEnv "VERSION_FROM_CHANGELOG")
|
isReleaseBuild = isJust <$> catchMaybeIO (getEnv "RELEASE_BUILD")
|
||||||
|
|
||||||
{- Version is usually based on the major version from the changelog,
|
{- Version is usually based on the major version from the changelog,
|
||||||
- plus the date of the last commit, plus the git rev of that commit.
|
- plus the date of the last commit, plus the git rev of that commit.
|
||||||
- This works for autobuilds, ad-hoc builds, etc.
|
- This works for autobuilds, ad-hoc builds, etc.
|
||||||
-
|
-
|
||||||
- If git or a git repo is not available, or something goes wrong,
|
- If git or a git repo is not available, or something goes wrong,
|
||||||
- just use the version from the changelog. -}
|
- or this is a release build, just use the version from the changelog. -}
|
||||||
getVersion :: Test
|
getVersion :: Test
|
||||||
getVersion = do
|
getVersion = do
|
||||||
changelogversion <- getChangelogVersion
|
changelogversion <- getChangelogVersion
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -4,7 +4,7 @@
|
||||||
export CABAL=./Setup
|
export CABAL=./Setup
|
||||||
|
|
||||||
# Do use the changelog's version number, rather than making one up.
|
# Do use the changelog's version number, rather than making one up.
|
||||||
export VERSION_FROM_CHANGELOG=1
|
export RELEASE_BUILD=1
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue