fix changelog version parse to work on windows
The CHANGELOG file, as a symlink, cannot be read on windows. So read debian/changelog. Also, newline compat.
This commit is contained in:
parent
258af9c6da
commit
524ffd1e68
1 changed files with 2 additions and 2 deletions
4
Build/Configure.hs
Normal file → Executable file
4
Build/Configure.hs
Normal file → Executable file
|
@ -109,8 +109,8 @@ getVersion = do
|
||||||
|
|
||||||
getChangelogVersion :: IO String
|
getChangelogVersion :: IO String
|
||||||
getChangelogVersion = do
|
getChangelogVersion = do
|
||||||
changelog <- readFile "CHANGELOG"
|
changelog <- readFile "debian/changelog"
|
||||||
let verline = head $ lines changelog
|
let verline = takeWhile (/= '\n') changelog
|
||||||
return $ middle (words verline !! 1)
|
return $ middle (words verline !! 1)
|
||||||
where
|
where
|
||||||
middle = drop 1 . init
|
middle = drop 1 . init
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue