Julian Ospald
48aee1e76c
This also installs makefile based build system via DESTDIR into a temporary directory and then merges it into the filesystem.
21 lines
353 B
Haskell
21 lines
353 B
Haskell
module GHCup.Utils.Prelude.Posix where
|
|
|
|
import System.Directory
|
|
import System.Posix.Files
|
|
|
|
|
|
isWindows, isNotWindows :: Bool
|
|
isWindows = False
|
|
isNotWindows = not isWindows
|
|
|
|
|
|
moveFile :: FilePath -> FilePath -> IO ()
|
|
moveFile = rename
|
|
|
|
|
|
moveFilePortable :: FilePath -> FilePath -> IO ()
|
|
moveFilePortable from to = do
|
|
copyFile from to
|
|
removeFile from
|
|
|