got this working
This commit is contained in:
parent
44a7387eba
commit
ad71ccdb57
1 changed files with 2 additions and 2 deletions
|
@ -37,11 +37,11 @@ installLibs appbase = do
|
||||||
needlibs <- otool appbase
|
needlibs <- otool appbase
|
||||||
forM needlibs $ \lib -> do
|
forM needlibs $ \lib -> do
|
||||||
let libdir = parentDir lib
|
let libdir = parentDir lib
|
||||||
let dest = appbase </> lib
|
let dest = appbase ++ lib
|
||||||
ifM (doesFileExist dest)
|
ifM (doesFileExist dest)
|
||||||
( return Nothing
|
( return Nothing
|
||||||
, do
|
, do
|
||||||
createDirectoryIfMissing True (appbase </> libdir)
|
createDirectoryIfMissing True (appbase ++ libdir)
|
||||||
_ <- boolSystem "cp" [File lib, File dest]
|
_ <- boolSystem "cp" [File lib, File dest]
|
||||||
putStrLn $ "installing " ++ lib
|
putStrLn $ "installing " ++ lib
|
||||||
return $ Just libdir
|
return $ Just libdir
|
||||||
|
|
Loading…
Reference in a new issue