aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-03-24 17:16:10 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-03-24 17:16:10 +0300
commit592032006897e28042b91770f741f110b871fb5d (patch)
treea21a0622a6437162b3793c589316a96a23fc5f26
parent66fd80a8fb769924bf818a5e7eb2452bea8b6083 (diff)
Remove dependency on Shake
-rwxr-xr-xinstall.hs10
1 files changed, 9 insertions, 1 deletions
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