From 592032006897e28042b91770f741f110b871fb5d Mon Sep 17 00:00:00 2001 From: alexwl Date: Sun, 24 Mar 2019 17:16:10 +0300 Subject: Remove dependency on Shake --- install.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.hs b/install.hs index 780b2bf..4fb56a3 100755 --- a/install.hs +++ b/install.hs @@ -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 -- cgit v1.2.3