diff options
author | alexwl <alexey.a.kiryushin@gmail.com> | 2019-03-24 17:16:10 +0300 |
---|---|---|
committer | alexwl <alexey.a.kiryushin@gmail.com> | 2019-03-24 17:16:10 +0300 |
commit | 592032006897e28042b91770f741f110b871fb5d (patch) | |
tree | a21a0622a6437162b3793c589316a96a23fc5f26 | |
parent | 66fd80a8fb769924bf818a5e7eb2452bea8b6083 (diff) |
Remove dependency on Shake
-rwxr-xr-x | install.hs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,6 +4,7 @@ --ghc-options -Wall -} +{-# LANGUAGE CPP #-} -- = About -- -- Install multiple versions of haskell-code-indexer, each with the version of @@ -31,7 +32,7 @@ import Data.Foldable import Data.List (dropWhileEnd) import qualified Data.Text as T import Data.Text.Encoding -import Development.Shake.FilePath +import System.FilePath ((<.>), (</>)) import Options.Applicative import System.Directory (copyFile, removeFile) import System.Process.Typed @@ -142,6 +143,13 @@ buildVersion v = do copyFile fromFile toFile removeFile fromFile +exe :: String +#if defined(mingw32_HOST_OS) +exe = "exe" +#else +exe = "" +#endif + -- | E.g. @"/home/user/bin"@. getLocalBin :: IO FilePath getLocalBin = do |