Revert "skip frameworks"

This reverts commit f850a64bd0.

At least CoreFoundation framework seems to be needed.
This commit is contained in:
Joey Hess 2012-12-07 14:40:48 -04:00
parent 02bd012587
commit 0986a21ce0

View file

@ -51,9 +51,7 @@ otool :: FilePath -> IO [FilePath]
otool appbase = do otool appbase = do
files <- filterM doesFileExist =<< dirContentsRecursive appbase files <- filterM doesFileExist =<< dirContentsRecursive appbase
s <- readProcess "otool" ("-L" : files) s <- readProcess "otool" ("-L" : files)
return $ nub $ filter (not . framework) $ parseOtool s return $ nub $ parseOtool s
where
framework f = ".framework" `isInfixOf` f
parseOtool :: String -> [FilePath] parseOtool :: String -> [FilePath]
parseOtool = catMaybes . map parse . lines parseOtool = catMaybes . map parse . lines