Only unzip what we use
This commit is contained in:
parent
51c7c1977f
commit
fe87351976
|
@ -6,7 +6,7 @@ import DependencyGenerator
|
||||||
handleRecipeDir :: Token FilePath -> Token Template -> Token FilePath -> DepGenM ()
|
handleRecipeDir :: Token FilePath -> Token Template -> Token FilePath -> DepGenM ()
|
||||||
handleRecipeDir outputDir template dir = do
|
handleRecipeDir outputDir template dir = do
|
||||||
dirContents <- listDirectory dir
|
dirContents <- listDirectory dir
|
||||||
(bases, exts) <- unzipDepGenM (mapDepGenM fileComponents dirContents)
|
exts <- unzipSndDepGenM (mapDepGenM fileComponents dirContents)
|
||||||
areImageFilenames <- mapDepGenM isImageExtension exts
|
areImageFilenames <- mapDepGenM isImageExtension exts
|
||||||
imageFilenames <- filterDepGenM areImageFilenames dirContents
|
imageFilenames <- filterDepGenM areImageFilenames dirContents
|
||||||
convertedImageFilenames <- mapDepGenM convertedImageFilename imageFilenames
|
convertedImageFilenames <- mapDepGenM convertedImageFilename imageFilenames
|
||||||
|
|
Loading…
Reference in New Issue