osx build fix
This commit is contained in:
parent
93d0abaaa6
commit
1c13745112
2 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
module Build.OSXMkLibs (mklibs) where
|
module Build.OSXMkLibs (mklibs) where
|
||||||
|
|
||||||
import System.Environment (getArgs)
|
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
|
|
|
@ -135,7 +135,7 @@ installMagic topdir = getEnv "OSX_MAGIC_FILE" >>= \case
|
||||||
Just f -> do
|
Just f -> do
|
||||||
let mdir = topdir </> "magic"
|
let mdir = topdir </> "magic"
|
||||||
createDirectoryIfMissing True mdir
|
createDirectoryIfMissing True mdir
|
||||||
unlessM (boolSystem "cp" [File f, File mdir </> "magic.mgc") $
|
unlessM (boolSystem "cp" [File f, File mdir </> "magic.mgc"]) $
|
||||||
error "cp failed"
|
error "cp failed"
|
||||||
#else
|
#else
|
||||||
installMagic topdir = do
|
installMagic topdir = do
|
||||||
|
|
Loading…
Reference in a new issue