for release meeting

This commit is contained in:
aarne
2004-06-21 08:53:58 +00:00
parent 3eba56aa2b
commit 667523c977
5 changed files with 570 additions and 9 deletions

View File

@@ -81,6 +81,13 @@ doesFileExistPath paths file = do
mpfile <- ioeIO $ getFilePath paths file
return $ maybe False (const True) mpfile
-- path in environment variable has lower priority
extendPathEnv :: String -> [FilePath] -> IO [FilePath]
extendPathEnv var ps = do
s <- catch (getEnv var) (const (return ""))
let fs = pFilePaths s
return $ ps ++ fs
pFilePaths :: String -> [FilePath]
pFilePaths s = case span (/=':') s of
(f,_:cs) -> f : pFilePaths cs