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 = do
|
||||
changelog <- readFile "CHANGELOG"
|
||||
let verline = head $ lines changelog
|
||||
changelog <- readFile "debian/changelog"
|
||||
let verline = takeWhile (/= '\n') changelog
|
||||
return $ middle (words verline !! 1)
|
||||
where
|
||||
middle = drop 1 . init
|
||||
|
|
Loading…
Add table
Reference in a new issue