Skip to content
Snippets Groups Projects
Commit 0b92aa85 authored by Simon Marlow's avatar Simon Marlow
Browse files

Fix getDataDir etc. when bindir=$prefix

parent e5b1224a
No related branches found
No related tags found
No related merge requests found
......@@ -235,8 +235,8 @@ get_prefix_stuff =
" return (prefixFromBinDir bindir bindirrel `joinFileName` dirRel)\n"++
" where\n"++
" prefixFromBinDir bindir path\n"++
" | path' == \".\" = bindir'\n"++
" | otherwise = prefixFromBinDir bindir' path'\n"++
" | path == \".\" || path == \"\" = bindir\n"++
" | otherwise = prefixFromBinDir bindir' path'\n"++
" where\n"++
" (bindir',_) = splitFileName bindir\n"++
" (path', _) = splitFileName path\n"++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment