From 87b329e4515d7ddce828422cf196180d76afb2d1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 26 Jun 2018 10:04:42 -0400 Subject: remove code to update version in cabal file I have not used this when making releases for a long time. --- Build/Configure.hs | 2 -- Build/Version.hs | 18 ------------------ 2 files changed, 20 deletions(-) (limited to 'Build') diff --git a/Build/Configure.hs b/Build/Configure.hs index 31d7dcafa4..4907d976fb 100644 --- a/Build/Configure.hs +++ b/Build/Configure.hs @@ -121,8 +121,6 @@ run ts = do Just "Android" -> writeSysConfig $ androidConfig config _ -> writeSysConfig config cleanup - whenM isReleaseBuild $ - cabalSetup "git-annex.cabal" {- Hard codes some settings to cross-compile for Android. -} androidConfig :: [Config] -> [Config] diff --git a/Build/Version.hs b/Build/Version.hs index d39a0fe08b..57364948a2 100644 --- a/Build/Version.hs +++ b/Build/Version.hs @@ -51,21 +51,3 @@ getChangelogVersion = do return $ middle (words verline !! 1) where middle = drop 1 . init - -{- Set up cabal file with version. -} -cabalSetup :: FilePath -> IO () -cabalSetup cabalfile = do - version <- takeWhile (\c -> isDigit c || c == '.') - <$> getChangelogVersion - cabal <- readFile cabalfile - writeFile tmpcabalfile $ unlines $ - map (setfield "Version" version) $ - lines cabal - renameFile tmpcabalfile cabalfile - where - tmpcabalfile = cabalfile++".tmp" - setfield field value s - | fullfield `isPrefixOf` s = fullfield ++ value - | otherwise = s - where - fullfield = field ++ ": " -- cgit v1.2.3